• 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 SubnetworkLogConfigOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.SubnetworkLogConfig)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.
31    * Check the AggregationInterval enum for the list of possible values.
32    * </pre>
33    *
34    * <code>optional string aggregation_interval = 174919042;</code>
35    *
36    * @return Whether the aggregationInterval field is set.
37    */
hasAggregationInterval()38   boolean hasAggregationInterval();
39   /**
40    *
41    *
42    * <pre>
43    * Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.
44    * Check the AggregationInterval enum for the list of possible values.
45    * </pre>
46    *
47    * <code>optional string aggregation_interval = 174919042;</code>
48    *
49    * @return The aggregationInterval.
50    */
getAggregationInterval()51   java.lang.String getAggregationInterval();
52   /**
53    *
54    *
55    * <pre>
56    * Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.
57    * Check the AggregationInterval enum for the list of possible values.
58    * </pre>
59    *
60    * <code>optional string aggregation_interval = 174919042;</code>
61    *
62    * @return The bytes for aggregationInterval.
63    */
getAggregationIntervalBytes()64   com.google.protobuf.ByteString getAggregationIntervalBytes();
65 
66   /**
67    *
68    *
69    * <pre>
70    * Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled.
71    * </pre>
72    *
73    * <code>optional bool enable = 311764355;</code>
74    *
75    * @return Whether the enable field is set.
76    */
hasEnable()77   boolean hasEnable();
78   /**
79    *
80    *
81    * <pre>
82    * Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled.
83    * </pre>
84    *
85    * <code>optional bool enable = 311764355;</code>
86    *
87    * @return The enable.
88    */
getEnable()89   boolean getEnable();
90 
91   /**
92    *
93    *
94    * <pre>
95    * Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is used to define which VPC flow logs should be exported to Cloud Logging.
96    * </pre>
97    *
98    * <code>optional string filter_expr = 183374428;</code>
99    *
100    * @return Whether the filterExpr field is set.
101    */
hasFilterExpr()102   boolean hasFilterExpr();
103   /**
104    *
105    *
106    * <pre>
107    * Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is used to define which VPC flow logs should be exported to Cloud Logging.
108    * </pre>
109    *
110    * <code>optional string filter_expr = 183374428;</code>
111    *
112    * @return The filterExpr.
113    */
getFilterExpr()114   java.lang.String getFilterExpr();
115   /**
116    *
117    *
118    * <pre>
119    * Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is used to define which VPC flow logs should be exported to Cloud Logging.
120    * </pre>
121    *
122    * <code>optional string filter_expr = 183374428;</code>
123    *
124    * @return The bytes for filterExpr.
125    */
getFilterExprBytes()126   com.google.protobuf.ByteString getFilterExprBytes();
127 
128   /**
129    *
130    *
131    * <pre>
132    * Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.
133    * </pre>
134    *
135    * <code>optional float flow_sampling = 530150360;</code>
136    *
137    * @return Whether the flowSampling field is set.
138    */
hasFlowSampling()139   boolean hasFlowSampling();
140   /**
141    *
142    *
143    * <pre>
144    * Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.
145    * </pre>
146    *
147    * <code>optional float flow_sampling = 530150360;</code>
148    *
149    * @return The flowSampling.
150    */
getFlowSampling()151   float getFlowSampling();
152 
153   /**
154    *
155    *
156    * <pre>
157    * Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.
158    * Check the Metadata enum for the list of possible values.
159    * </pre>
160    *
161    * <code>optional string metadata = 86866735;</code>
162    *
163    * @return Whether the metadata field is set.
164    */
hasMetadata()165   boolean hasMetadata();
166   /**
167    *
168    *
169    * <pre>
170    * Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.
171    * Check the Metadata enum for the list of possible values.
172    * </pre>
173    *
174    * <code>optional string metadata = 86866735;</code>
175    *
176    * @return The metadata.
177    */
getMetadata()178   java.lang.String getMetadata();
179   /**
180    *
181    *
182    * <pre>
183    * Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.
184    * Check the Metadata enum for the list of possible values.
185    * </pre>
186    *
187    * <code>optional string metadata = 86866735;</code>
188    *
189    * @return The bytes for metadata.
190    */
getMetadataBytes()191   com.google.protobuf.ByteString getMetadataBytes();
192 
193   /**
194    *
195    *
196    * <pre>
197    * Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
198    * </pre>
199    *
200    * <code>repeated string metadata_fields = 378461641;</code>
201    *
202    * @return A list containing the metadataFields.
203    */
getMetadataFieldsList()204   java.util.List<java.lang.String> getMetadataFieldsList();
205   /**
206    *
207    *
208    * <pre>
209    * Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
210    * </pre>
211    *
212    * <code>repeated string metadata_fields = 378461641;</code>
213    *
214    * @return The count of metadataFields.
215    */
getMetadataFieldsCount()216   int getMetadataFieldsCount();
217   /**
218    *
219    *
220    * <pre>
221    * Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
222    * </pre>
223    *
224    * <code>repeated string metadata_fields = 378461641;</code>
225    *
226    * @param index The index of the element to return.
227    * @return The metadataFields at the given index.
228    */
getMetadataFields(int index)229   java.lang.String getMetadataFields(int index);
230   /**
231    *
232    *
233    * <pre>
234    * Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
235    * </pre>
236    *
237    * <code>repeated string metadata_fields = 378461641;</code>
238    *
239    * @param index The index of the value to return.
240    * @return The bytes of the metadataFields at the given index.
241    */
getMetadataFieldsBytes(int index)242   com.google.protobuf.ByteString getMetadataFieldsBytes(int index);
243 }
244