• 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/compute/v1/compute.proto
18 
19 package com.google.cloud.compute.v1;
20 
21 public interface FirewallPolicyRuleOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.FirewallPolicyRule)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * The Action to perform when the client connection triggers the rule. Valid actions are "allow", "deny" and "goto_next".
31    * </pre>
32    *
33    * <code>optional string action = 187661878;</code>
34    *
35    * @return Whether the action field is set.
36    */
hasAction()37   boolean hasAction();
38   /**
39    *
40    *
41    * <pre>
42    * The Action to perform when the client connection triggers the rule. Valid actions are "allow", "deny" and "goto_next".
43    * </pre>
44    *
45    * <code>optional string action = 187661878;</code>
46    *
47    * @return The action.
48    */
getAction()49   java.lang.String getAction();
50   /**
51    *
52    *
53    * <pre>
54    * The Action to perform when the client connection triggers the rule. Valid actions are "allow", "deny" and "goto_next".
55    * </pre>
56    *
57    * <code>optional string action = 187661878;</code>
58    *
59    * @return The bytes for action.
60    */
getActionBytes()61   com.google.protobuf.ByteString getActionBytes();
62 
63   /**
64    *
65    *
66    * <pre>
67    * An optional description for this resource.
68    * </pre>
69    *
70    * <code>optional string description = 422937596;</code>
71    *
72    * @return Whether the description field is set.
73    */
hasDescription()74   boolean hasDescription();
75   /**
76    *
77    *
78    * <pre>
79    * An optional description for this resource.
80    * </pre>
81    *
82    * <code>optional string description = 422937596;</code>
83    *
84    * @return The description.
85    */
getDescription()86   java.lang.String getDescription();
87   /**
88    *
89    *
90    * <pre>
91    * An optional description for this resource.
92    * </pre>
93    *
94    * <code>optional string description = 422937596;</code>
95    *
96    * @return The bytes for description.
97    */
getDescriptionBytes()98   com.google.protobuf.ByteString getDescriptionBytes();
99 
100   /**
101    *
102    *
103    * <pre>
104    * The direction in which this rule applies.
105    * Check the Direction enum for the list of possible values.
106    * </pre>
107    *
108    * <code>optional string direction = 111150975;</code>
109    *
110    * @return Whether the direction field is set.
111    */
hasDirection()112   boolean hasDirection();
113   /**
114    *
115    *
116    * <pre>
117    * The direction in which this rule applies.
118    * Check the Direction enum for the list of possible values.
119    * </pre>
120    *
121    * <code>optional string direction = 111150975;</code>
122    *
123    * @return The direction.
124    */
getDirection()125   java.lang.String getDirection();
126   /**
127    *
128    *
129    * <pre>
130    * The direction in which this rule applies.
131    * Check the Direction enum for the list of possible values.
132    * </pre>
133    *
134    * <code>optional string direction = 111150975;</code>
135    *
136    * @return The bytes for direction.
137    */
getDirectionBytes()138   com.google.protobuf.ByteString getDirectionBytes();
139 
140   /**
141    *
142    *
143    * <pre>
144    * Denotes whether the firewall policy rule is disabled. When set to true, the firewall policy rule is not enforced and traffic behaves as if it did not exist. If this is unspecified, the firewall policy rule will be enabled.
145    * </pre>
146    *
147    * <code>optional bool disabled = 270940796;</code>
148    *
149    * @return Whether the disabled field is set.
150    */
hasDisabled()151   boolean hasDisabled();
152   /**
153    *
154    *
155    * <pre>
156    * Denotes whether the firewall policy rule is disabled. When set to true, the firewall policy rule is not enforced and traffic behaves as if it did not exist. If this is unspecified, the firewall policy rule will be enabled.
157    * </pre>
158    *
159    * <code>optional bool disabled = 270940796;</code>
160    *
161    * @return The disabled.
162    */
getDisabled()163   boolean getDisabled();
164 
165   /**
166    *
167    *
168    * <pre>
169    * Denotes whether to enable logging for a particular rule. If logging is enabled, logs will be exported to the configured export destination in Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you cannot enable logging on "goto_next" rules.
170    * </pre>
171    *
172    * <code>optional bool enable_logging = 295396515;</code>
173    *
174    * @return Whether the enableLogging field is set.
175    */
hasEnableLogging()176   boolean hasEnableLogging();
177   /**
178    *
179    *
180    * <pre>
181    * Denotes whether to enable logging for a particular rule. If logging is enabled, logs will be exported to the configured export destination in Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you cannot enable logging on "goto_next" rules.
182    * </pre>
183    *
184    * <code>optional bool enable_logging = 295396515;</code>
185    *
186    * @return The enableLogging.
187    */
getEnableLogging()188   boolean getEnableLogging();
189 
190   /**
191    *
192    *
193    * <pre>
194    * [Output only] Type of the resource. Always compute#firewallPolicyRule for firewall policy rules
195    * </pre>
196    *
197    * <code>optional string kind = 3292052;</code>
198    *
199    * @return Whether the kind field is set.
200    */
hasKind()201   boolean hasKind();
202   /**
203    *
204    *
205    * <pre>
206    * [Output only] Type of the resource. Always compute#firewallPolicyRule for firewall policy rules
207    * </pre>
208    *
209    * <code>optional string kind = 3292052;</code>
210    *
211    * @return The kind.
212    */
getKind()213   java.lang.String getKind();
214   /**
215    *
216    *
217    * <pre>
218    * [Output only] Type of the resource. Always compute#firewallPolicyRule for firewall policy rules
219    * </pre>
220    *
221    * <code>optional string kind = 3292052;</code>
222    *
223    * @return The bytes for kind.
224    */
getKindBytes()225   com.google.protobuf.ByteString getKindBytes();
226 
227   /**
228    *
229    *
230    * <pre>
231    * A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
232    * </pre>
233    *
234    * <code>optional .google.cloud.compute.v1.FirewallPolicyRuleMatcher match = 103668165;</code>
235    *
236    * @return Whether the match field is set.
237    */
hasMatch()238   boolean hasMatch();
239   /**
240    *
241    *
242    * <pre>
243    * A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
244    * </pre>
245    *
246    * <code>optional .google.cloud.compute.v1.FirewallPolicyRuleMatcher match = 103668165;</code>
247    *
248    * @return The match.
249    */
getMatch()250   com.google.cloud.compute.v1.FirewallPolicyRuleMatcher getMatch();
251   /**
252    *
253    *
254    * <pre>
255    * A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
256    * </pre>
257    *
258    * <code>optional .google.cloud.compute.v1.FirewallPolicyRuleMatcher match = 103668165;</code>
259    */
getMatchOrBuilder()260   com.google.cloud.compute.v1.FirewallPolicyRuleMatcherOrBuilder getMatchOrBuilder();
261 
262   /**
263    *
264    *
265    * <pre>
266    * An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest prority.
267    * </pre>
268    *
269    * <code>optional int32 priority = 445151652;</code>
270    *
271    * @return Whether the priority field is set.
272    */
hasPriority()273   boolean hasPriority();
274   /**
275    *
276    *
277    * <pre>
278    * An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest prority.
279    * </pre>
280    *
281    * <code>optional int32 priority = 445151652;</code>
282    *
283    * @return The priority.
284    */
getPriority()285   int getPriority();
286 
287   /**
288    *
289    *
290    * <pre>
291    * An optional name for the rule. This field is not a unique identifier and can be updated.
292    * </pre>
293    *
294    * <code>optional string rule_name = 55286254;</code>
295    *
296    * @return Whether the ruleName field is set.
297    */
hasRuleName()298   boolean hasRuleName();
299   /**
300    *
301    *
302    * <pre>
303    * An optional name for the rule. This field is not a unique identifier and can be updated.
304    * </pre>
305    *
306    * <code>optional string rule_name = 55286254;</code>
307    *
308    * @return The ruleName.
309    */
getRuleName()310   java.lang.String getRuleName();
311   /**
312    *
313    *
314    * <pre>
315    * An optional name for the rule. This field is not a unique identifier and can be updated.
316    * </pre>
317    *
318    * <code>optional string rule_name = 55286254;</code>
319    *
320    * @return The bytes for ruleName.
321    */
getRuleNameBytes()322   com.google.protobuf.ByteString getRuleNameBytes();
323 
324   /**
325    *
326    *
327    * <pre>
328    * [Output Only] Calculation of the complexity of a single firewall policy rule.
329    * </pre>
330    *
331    * <code>optional int32 rule_tuple_count = 388342037;</code>
332    *
333    * @return Whether the ruleTupleCount field is set.
334    */
hasRuleTupleCount()335   boolean hasRuleTupleCount();
336   /**
337    *
338    *
339    * <pre>
340    * [Output Only] Calculation of the complexity of a single firewall policy rule.
341    * </pre>
342    *
343    * <code>optional int32 rule_tuple_count = 388342037;</code>
344    *
345    * @return The ruleTupleCount.
346    */
getRuleTupleCount()347   int getRuleTupleCount();
348 
349   /**
350    *
351    *
352    * <pre>
353    * A list of network resource URLs to which this rule applies. This field allows you to control which network's VMs get this rule. If this field is left blank, all VMs within the organization will receive the rule.
354    * </pre>
355    *
356    * <code>repeated string target_resources = 528230647;</code>
357    *
358    * @return A list containing the targetResources.
359    */
getTargetResourcesList()360   java.util.List<java.lang.String> getTargetResourcesList();
361   /**
362    *
363    *
364    * <pre>
365    * A list of network resource URLs to which this rule applies. This field allows you to control which network's VMs get this rule. If this field is left blank, all VMs within the organization will receive the rule.
366    * </pre>
367    *
368    * <code>repeated string target_resources = 528230647;</code>
369    *
370    * @return The count of targetResources.
371    */
getTargetResourcesCount()372   int getTargetResourcesCount();
373   /**
374    *
375    *
376    * <pre>
377    * A list of network resource URLs to which this rule applies. This field allows you to control which network's VMs get this rule. If this field is left blank, all VMs within the organization will receive the rule.
378    * </pre>
379    *
380    * <code>repeated string target_resources = 528230647;</code>
381    *
382    * @param index The index of the element to return.
383    * @return The targetResources at the given index.
384    */
getTargetResources(int index)385   java.lang.String getTargetResources(int index);
386   /**
387    *
388    *
389    * <pre>
390    * A list of network resource URLs to which this rule applies. This field allows you to control which network's VMs get this rule. If this field is left blank, all VMs within the organization will receive the rule.
391    * </pre>
392    *
393    * <code>repeated string target_resources = 528230647;</code>
394    *
395    * @param index The index of the value to return.
396    * @return The bytes of the targetResources at the given index.
397    */
getTargetResourcesBytes(int index)398   com.google.protobuf.ByteString getTargetResourcesBytes(int index);
399 
400   /**
401    *
402    *
403    * <pre>
404    * A list of secure tags that controls which instances the firewall rule applies to. If targetSecureTag are specified, then the firewall rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in INEFFECTIVE state, then this rule will be ignored. targetSecureTag may not be set at the same time as targetServiceAccounts. If neither targetServiceAccounts nor targetSecureTag are specified, the firewall rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256.
405    * </pre>
406    *
407    * <code>
408    * repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag target_secure_tags = 468132403;
409    * </code>
410    */
getTargetSecureTagsList()411   java.util.List<com.google.cloud.compute.v1.FirewallPolicyRuleSecureTag> getTargetSecureTagsList();
412   /**
413    *
414    *
415    * <pre>
416    * A list of secure tags that controls which instances the firewall rule applies to. If targetSecureTag are specified, then the firewall rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in INEFFECTIVE state, then this rule will be ignored. targetSecureTag may not be set at the same time as targetServiceAccounts. If neither targetServiceAccounts nor targetSecureTag are specified, the firewall rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256.
417    * </pre>
418    *
419    * <code>
420    * repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag target_secure_tags = 468132403;
421    * </code>
422    */
getTargetSecureTags(int index)423   com.google.cloud.compute.v1.FirewallPolicyRuleSecureTag getTargetSecureTags(int index);
424   /**
425    *
426    *
427    * <pre>
428    * A list of secure tags that controls which instances the firewall rule applies to. If targetSecureTag are specified, then the firewall rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in INEFFECTIVE state, then this rule will be ignored. targetSecureTag may not be set at the same time as targetServiceAccounts. If neither targetServiceAccounts nor targetSecureTag are specified, the firewall rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256.
429    * </pre>
430    *
431    * <code>
432    * repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag target_secure_tags = 468132403;
433    * </code>
434    */
getTargetSecureTagsCount()435   int getTargetSecureTagsCount();
436   /**
437    *
438    *
439    * <pre>
440    * A list of secure tags that controls which instances the firewall rule applies to. If targetSecureTag are specified, then the firewall rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in INEFFECTIVE state, then this rule will be ignored. targetSecureTag may not be set at the same time as targetServiceAccounts. If neither targetServiceAccounts nor targetSecureTag are specified, the firewall rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256.
441    * </pre>
442    *
443    * <code>
444    * repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag target_secure_tags = 468132403;
445    * </code>
446    */
447   java.util.List<? extends com.google.cloud.compute.v1.FirewallPolicyRuleSecureTagOrBuilder>
getTargetSecureTagsOrBuilderList()448       getTargetSecureTagsOrBuilderList();
449   /**
450    *
451    *
452    * <pre>
453    * A list of secure tags that controls which instances the firewall rule applies to. If targetSecureTag are specified, then the firewall rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in INEFFECTIVE state, then this rule will be ignored. targetSecureTag may not be set at the same time as targetServiceAccounts. If neither targetServiceAccounts nor targetSecureTag are specified, the firewall rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256.
454    * </pre>
455    *
456    * <code>
457    * repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag target_secure_tags = 468132403;
458    * </code>
459    */
getTargetSecureTagsOrBuilder( int index)460   com.google.cloud.compute.v1.FirewallPolicyRuleSecureTagOrBuilder getTargetSecureTagsOrBuilder(
461       int index);
462 
463   /**
464    *
465    *
466    * <pre>
467    * A list of service accounts indicating the sets of instances that are applied with this rule.
468    * </pre>
469    *
470    * <code>repeated string target_service_accounts = 457639710;</code>
471    *
472    * @return A list containing the targetServiceAccounts.
473    */
getTargetServiceAccountsList()474   java.util.List<java.lang.String> getTargetServiceAccountsList();
475   /**
476    *
477    *
478    * <pre>
479    * A list of service accounts indicating the sets of instances that are applied with this rule.
480    * </pre>
481    *
482    * <code>repeated string target_service_accounts = 457639710;</code>
483    *
484    * @return The count of targetServiceAccounts.
485    */
getTargetServiceAccountsCount()486   int getTargetServiceAccountsCount();
487   /**
488    *
489    *
490    * <pre>
491    * A list of service accounts indicating the sets of instances that are applied with this rule.
492    * </pre>
493    *
494    * <code>repeated string target_service_accounts = 457639710;</code>
495    *
496    * @param index The index of the element to return.
497    * @return The targetServiceAccounts at the given index.
498    */
getTargetServiceAccounts(int index)499   java.lang.String getTargetServiceAccounts(int index);
500   /**
501    *
502    *
503    * <pre>
504    * A list of service accounts indicating the sets of instances that are applied with this rule.
505    * </pre>
506    *
507    * <code>repeated string target_service_accounts = 457639710;</code>
508    *
509    * @param index The index of the value to return.
510    * @return The bytes of the targetServiceAccounts at the given index.
511    */
getTargetServiceAccountsBytes(int index)512   com.google.protobuf.ByteString getTargetServiceAccountsBytes(int index);
513 }
514