• 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 /**
22  *
23  *
24  * <pre>
25  * The available logging options for this subnetwork.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.compute.v1.SubnetworkLogConfig}
29  */
30 public final class SubnetworkLogConfig extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.SubnetworkLogConfig)
33     SubnetworkLogConfigOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use SubnetworkLogConfig.newBuilder() to construct.
SubnetworkLogConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private SubnetworkLogConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
SubnetworkLogConfig()40   private SubnetworkLogConfig() {
41     aggregationInterval_ = "";
42     filterExpr_ = "";
43     metadata_ = "";
44     metadataFields_ = com.google.protobuf.LazyStringArrayList.EMPTY;
45   }
46 
47   @java.lang.Override
48   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)49   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
50     return new SubnetworkLogConfig();
51   }
52 
53   @java.lang.Override
getUnknownFields()54   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
55     return this.unknownFields;
56   }
57 
getDescriptor()58   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
59     return com.google.cloud.compute.v1.Compute
60         .internal_static_google_cloud_compute_v1_SubnetworkLogConfig_descriptor;
61   }
62 
63   @java.lang.Override
64   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()65       internalGetFieldAccessorTable() {
66     return com.google.cloud.compute.v1.Compute
67         .internal_static_google_cloud_compute_v1_SubnetworkLogConfig_fieldAccessorTable
68         .ensureFieldAccessorsInitialized(
69             com.google.cloud.compute.v1.SubnetworkLogConfig.class,
70             com.google.cloud.compute.v1.SubnetworkLogConfig.Builder.class);
71   }
72 
73   /**
74    *
75    *
76    * <pre>
77    * 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.
78    * </pre>
79    *
80    * Protobuf enum {@code google.cloud.compute.v1.SubnetworkLogConfig.AggregationInterval}
81    */
82   public enum AggregationInterval implements com.google.protobuf.ProtocolMessageEnum {
83     /**
84      *
85      *
86      * <pre>
87      * A value indicating that the enum field is not set.
88      * </pre>
89      *
90      * <code>UNDEFINED_AGGREGATION_INTERVAL = 0;</code>
91      */
92     UNDEFINED_AGGREGATION_INTERVAL(0),
93     /** <code>INTERVAL_10_MIN = 487155916;</code> */
94     INTERVAL_10_MIN(487155916),
95     /** <code>INTERVAL_15_MIN = 491773521;</code> */
96     INTERVAL_15_MIN(491773521),
97     /** <code>INTERVAL_1_MIN = 69052714;</code> */
98     INTERVAL_1_MIN(69052714),
99     /** <code>INTERVAL_30_SEC = 7548937;</code> */
100     INTERVAL_30_SEC(7548937),
101     /** <code>INTERVAL_5_MIN = 72746798;</code> */
102     INTERVAL_5_MIN(72746798),
103     /** <code>INTERVAL_5_SEC = 72752429;</code> */
104     INTERVAL_5_SEC(72752429),
105     UNRECOGNIZED(-1),
106     ;
107 
108     /**
109      *
110      *
111      * <pre>
112      * A value indicating that the enum field is not set.
113      * </pre>
114      *
115      * <code>UNDEFINED_AGGREGATION_INTERVAL = 0;</code>
116      */
117     public static final int UNDEFINED_AGGREGATION_INTERVAL_VALUE = 0;
118     /** <code>INTERVAL_10_MIN = 487155916;</code> */
119     public static final int INTERVAL_10_MIN_VALUE = 487155916;
120     /** <code>INTERVAL_15_MIN = 491773521;</code> */
121     public static final int INTERVAL_15_MIN_VALUE = 491773521;
122     /** <code>INTERVAL_1_MIN = 69052714;</code> */
123     public static final int INTERVAL_1_MIN_VALUE = 69052714;
124     /** <code>INTERVAL_30_SEC = 7548937;</code> */
125     public static final int INTERVAL_30_SEC_VALUE = 7548937;
126     /** <code>INTERVAL_5_MIN = 72746798;</code> */
127     public static final int INTERVAL_5_MIN_VALUE = 72746798;
128     /** <code>INTERVAL_5_SEC = 72752429;</code> */
129     public static final int INTERVAL_5_SEC_VALUE = 72752429;
130 
getNumber()131     public final int getNumber() {
132       if (this == UNRECOGNIZED) {
133         throw new java.lang.IllegalArgumentException(
134             "Can't get the number of an unknown enum value.");
135       }
136       return value;
137     }
138 
139     /**
140      * @param value The numeric wire value of the corresponding enum entry.
141      * @return The enum associated with the given numeric wire value.
142      * @deprecated Use {@link #forNumber(int)} instead.
143      */
144     @java.lang.Deprecated
valueOf(int value)145     public static AggregationInterval valueOf(int value) {
146       return forNumber(value);
147     }
148 
149     /**
150      * @param value The numeric wire value of the corresponding enum entry.
151      * @return The enum associated with the given numeric wire value.
152      */
forNumber(int value)153     public static AggregationInterval forNumber(int value) {
154       switch (value) {
155         case 0:
156           return UNDEFINED_AGGREGATION_INTERVAL;
157         case 487155916:
158           return INTERVAL_10_MIN;
159         case 491773521:
160           return INTERVAL_15_MIN;
161         case 69052714:
162           return INTERVAL_1_MIN;
163         case 7548937:
164           return INTERVAL_30_SEC;
165         case 72746798:
166           return INTERVAL_5_MIN;
167         case 72752429:
168           return INTERVAL_5_SEC;
169         default:
170           return null;
171       }
172     }
173 
174     public static com.google.protobuf.Internal.EnumLiteMap<AggregationInterval>
internalGetValueMap()175         internalGetValueMap() {
176       return internalValueMap;
177     }
178 
179     private static final com.google.protobuf.Internal.EnumLiteMap<AggregationInterval>
180         internalValueMap =
181             new com.google.protobuf.Internal.EnumLiteMap<AggregationInterval>() {
182               public AggregationInterval findValueByNumber(int number) {
183                 return AggregationInterval.forNumber(number);
184               }
185             };
186 
getValueDescriptor()187     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
188       if (this == UNRECOGNIZED) {
189         throw new java.lang.IllegalStateException(
190             "Can't get the descriptor of an unrecognized enum value.");
191       }
192       return getDescriptor().getValues().get(ordinal());
193     }
194 
getDescriptorForType()195     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
196       return getDescriptor();
197     }
198 
getDescriptor()199     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
200       return com.google.cloud.compute.v1.SubnetworkLogConfig.getDescriptor().getEnumTypes().get(0);
201     }
202 
203     private static final AggregationInterval[] VALUES = values();
204 
valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc)205     public static AggregationInterval valueOf(
206         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
207       if (desc.getType() != getDescriptor()) {
208         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
209       }
210       if (desc.getIndex() == -1) {
211         return UNRECOGNIZED;
212       }
213       return VALUES[desc.getIndex()];
214     }
215 
216     private final int value;
217 
AggregationInterval(int value)218     private AggregationInterval(int value) {
219       this.value = value;
220     }
221 
222     // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.SubnetworkLogConfig.AggregationInterval)
223   }
224 
225   /**
226    *
227    *
228    * <pre>
229    * 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.
230    * </pre>
231    *
232    * Protobuf enum {@code google.cloud.compute.v1.SubnetworkLogConfig.Metadata}
233    */
234   public enum Metadata implements com.google.protobuf.ProtocolMessageEnum {
235     /**
236      *
237      *
238      * <pre>
239      * A value indicating that the enum field is not set.
240      * </pre>
241      *
242      * <code>UNDEFINED_METADATA = 0;</code>
243      */
244     UNDEFINED_METADATA(0),
245     /** <code>CUSTOM_METADATA = 62450749;</code> */
246     CUSTOM_METADATA(62450749),
247     /** <code>EXCLUDE_ALL_METADATA = 334519954;</code> */
248     EXCLUDE_ALL_METADATA(334519954),
249     /** <code>INCLUDE_ALL_METADATA = 164619908;</code> */
250     INCLUDE_ALL_METADATA(164619908),
251     UNRECOGNIZED(-1),
252     ;
253 
254     /**
255      *
256      *
257      * <pre>
258      * A value indicating that the enum field is not set.
259      * </pre>
260      *
261      * <code>UNDEFINED_METADATA = 0;</code>
262      */
263     public static final int UNDEFINED_METADATA_VALUE = 0;
264     /** <code>CUSTOM_METADATA = 62450749;</code> */
265     public static final int CUSTOM_METADATA_VALUE = 62450749;
266     /** <code>EXCLUDE_ALL_METADATA = 334519954;</code> */
267     public static final int EXCLUDE_ALL_METADATA_VALUE = 334519954;
268     /** <code>INCLUDE_ALL_METADATA = 164619908;</code> */
269     public static final int INCLUDE_ALL_METADATA_VALUE = 164619908;
270 
getNumber()271     public final int getNumber() {
272       if (this == UNRECOGNIZED) {
273         throw new java.lang.IllegalArgumentException(
274             "Can't get the number of an unknown enum value.");
275       }
276       return value;
277     }
278 
279     /**
280      * @param value The numeric wire value of the corresponding enum entry.
281      * @return The enum associated with the given numeric wire value.
282      * @deprecated Use {@link #forNumber(int)} instead.
283      */
284     @java.lang.Deprecated
valueOf(int value)285     public static Metadata valueOf(int value) {
286       return forNumber(value);
287     }
288 
289     /**
290      * @param value The numeric wire value of the corresponding enum entry.
291      * @return The enum associated with the given numeric wire value.
292      */
forNumber(int value)293     public static Metadata forNumber(int value) {
294       switch (value) {
295         case 0:
296           return UNDEFINED_METADATA;
297         case 62450749:
298           return CUSTOM_METADATA;
299         case 334519954:
300           return EXCLUDE_ALL_METADATA;
301         case 164619908:
302           return INCLUDE_ALL_METADATA;
303         default:
304           return null;
305       }
306     }
307 
internalGetValueMap()308     public static com.google.protobuf.Internal.EnumLiteMap<Metadata> internalGetValueMap() {
309       return internalValueMap;
310     }
311 
312     private static final com.google.protobuf.Internal.EnumLiteMap<Metadata> internalValueMap =
313         new com.google.protobuf.Internal.EnumLiteMap<Metadata>() {
314           public Metadata findValueByNumber(int number) {
315             return Metadata.forNumber(number);
316           }
317         };
318 
getValueDescriptor()319     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
320       if (this == UNRECOGNIZED) {
321         throw new java.lang.IllegalStateException(
322             "Can't get the descriptor of an unrecognized enum value.");
323       }
324       return getDescriptor().getValues().get(ordinal());
325     }
326 
getDescriptorForType()327     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
328       return getDescriptor();
329     }
330 
getDescriptor()331     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
332       return com.google.cloud.compute.v1.SubnetworkLogConfig.getDescriptor().getEnumTypes().get(1);
333     }
334 
335     private static final Metadata[] VALUES = values();
336 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)337     public static Metadata valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
338       if (desc.getType() != getDescriptor()) {
339         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
340       }
341       if (desc.getIndex() == -1) {
342         return UNRECOGNIZED;
343       }
344       return VALUES[desc.getIndex()];
345     }
346 
347     private final int value;
348 
Metadata(int value)349     private Metadata(int value) {
350       this.value = value;
351     }
352 
353     // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.SubnetworkLogConfig.Metadata)
354   }
355 
356   private int bitField0_;
357   public static final int AGGREGATION_INTERVAL_FIELD_NUMBER = 174919042;
358 
359   @SuppressWarnings("serial")
360   private volatile java.lang.Object aggregationInterval_ = "";
361   /**
362    *
363    *
364    * <pre>
365    * 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.
366    * Check the AggregationInterval enum for the list of possible values.
367    * </pre>
368    *
369    * <code>optional string aggregation_interval = 174919042;</code>
370    *
371    * @return Whether the aggregationInterval field is set.
372    */
373   @java.lang.Override
hasAggregationInterval()374   public boolean hasAggregationInterval() {
375     return ((bitField0_ & 0x00000001) != 0);
376   }
377   /**
378    *
379    *
380    * <pre>
381    * 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.
382    * Check the AggregationInterval enum for the list of possible values.
383    * </pre>
384    *
385    * <code>optional string aggregation_interval = 174919042;</code>
386    *
387    * @return The aggregationInterval.
388    */
389   @java.lang.Override
getAggregationInterval()390   public java.lang.String getAggregationInterval() {
391     java.lang.Object ref = aggregationInterval_;
392     if (ref instanceof java.lang.String) {
393       return (java.lang.String) ref;
394     } else {
395       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
396       java.lang.String s = bs.toStringUtf8();
397       aggregationInterval_ = s;
398       return s;
399     }
400   }
401   /**
402    *
403    *
404    * <pre>
405    * 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.
406    * Check the AggregationInterval enum for the list of possible values.
407    * </pre>
408    *
409    * <code>optional string aggregation_interval = 174919042;</code>
410    *
411    * @return The bytes for aggregationInterval.
412    */
413   @java.lang.Override
getAggregationIntervalBytes()414   public com.google.protobuf.ByteString getAggregationIntervalBytes() {
415     java.lang.Object ref = aggregationInterval_;
416     if (ref instanceof java.lang.String) {
417       com.google.protobuf.ByteString b =
418           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
419       aggregationInterval_ = b;
420       return b;
421     } else {
422       return (com.google.protobuf.ByteString) ref;
423     }
424   }
425 
426   public static final int ENABLE_FIELD_NUMBER = 311764355;
427   private boolean enable_ = false;
428   /**
429    *
430    *
431    * <pre>
432    * 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.
433    * </pre>
434    *
435    * <code>optional bool enable = 311764355;</code>
436    *
437    * @return Whether the enable field is set.
438    */
439   @java.lang.Override
hasEnable()440   public boolean hasEnable() {
441     return ((bitField0_ & 0x00000002) != 0);
442   }
443   /**
444    *
445    *
446    * <pre>
447    * 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.
448    * </pre>
449    *
450    * <code>optional bool enable = 311764355;</code>
451    *
452    * @return The enable.
453    */
454   @java.lang.Override
getEnable()455   public boolean getEnable() {
456     return enable_;
457   }
458 
459   public static final int FILTER_EXPR_FIELD_NUMBER = 183374428;
460 
461   @SuppressWarnings("serial")
462   private volatile java.lang.Object filterExpr_ = "";
463   /**
464    *
465    *
466    * <pre>
467    * 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.
468    * </pre>
469    *
470    * <code>optional string filter_expr = 183374428;</code>
471    *
472    * @return Whether the filterExpr field is set.
473    */
474   @java.lang.Override
hasFilterExpr()475   public boolean hasFilterExpr() {
476     return ((bitField0_ & 0x00000004) != 0);
477   }
478   /**
479    *
480    *
481    * <pre>
482    * 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.
483    * </pre>
484    *
485    * <code>optional string filter_expr = 183374428;</code>
486    *
487    * @return The filterExpr.
488    */
489   @java.lang.Override
getFilterExpr()490   public java.lang.String getFilterExpr() {
491     java.lang.Object ref = filterExpr_;
492     if (ref instanceof java.lang.String) {
493       return (java.lang.String) ref;
494     } else {
495       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
496       java.lang.String s = bs.toStringUtf8();
497       filterExpr_ = s;
498       return s;
499     }
500   }
501   /**
502    *
503    *
504    * <pre>
505    * 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.
506    * </pre>
507    *
508    * <code>optional string filter_expr = 183374428;</code>
509    *
510    * @return The bytes for filterExpr.
511    */
512   @java.lang.Override
getFilterExprBytes()513   public com.google.protobuf.ByteString getFilterExprBytes() {
514     java.lang.Object ref = filterExpr_;
515     if (ref instanceof java.lang.String) {
516       com.google.protobuf.ByteString b =
517           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
518       filterExpr_ = b;
519       return b;
520     } else {
521       return (com.google.protobuf.ByteString) ref;
522     }
523   }
524 
525   public static final int FLOW_SAMPLING_FIELD_NUMBER = 530150360;
526   private float flowSampling_ = 0F;
527   /**
528    *
529    *
530    * <pre>
531    * 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.
532    * </pre>
533    *
534    * <code>optional float flow_sampling = 530150360;</code>
535    *
536    * @return Whether the flowSampling field is set.
537    */
538   @java.lang.Override
hasFlowSampling()539   public boolean hasFlowSampling() {
540     return ((bitField0_ & 0x00000008) != 0);
541   }
542   /**
543    *
544    *
545    * <pre>
546    * 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.
547    * </pre>
548    *
549    * <code>optional float flow_sampling = 530150360;</code>
550    *
551    * @return The flowSampling.
552    */
553   @java.lang.Override
getFlowSampling()554   public float getFlowSampling() {
555     return flowSampling_;
556   }
557 
558   public static final int METADATA_FIELD_NUMBER = 86866735;
559 
560   @SuppressWarnings("serial")
561   private volatile java.lang.Object metadata_ = "";
562   /**
563    *
564    *
565    * <pre>
566    * 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.
567    * Check the Metadata enum for the list of possible values.
568    * </pre>
569    *
570    * <code>optional string metadata = 86866735;</code>
571    *
572    * @return Whether the metadata field is set.
573    */
574   @java.lang.Override
hasMetadata()575   public boolean hasMetadata() {
576     return ((bitField0_ & 0x00000010) != 0);
577   }
578   /**
579    *
580    *
581    * <pre>
582    * 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.
583    * Check the Metadata enum for the list of possible values.
584    * </pre>
585    *
586    * <code>optional string metadata = 86866735;</code>
587    *
588    * @return The metadata.
589    */
590   @java.lang.Override
getMetadata()591   public java.lang.String getMetadata() {
592     java.lang.Object ref = metadata_;
593     if (ref instanceof java.lang.String) {
594       return (java.lang.String) ref;
595     } else {
596       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
597       java.lang.String s = bs.toStringUtf8();
598       metadata_ = s;
599       return s;
600     }
601   }
602   /**
603    *
604    *
605    * <pre>
606    * 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.
607    * Check the Metadata enum for the list of possible values.
608    * </pre>
609    *
610    * <code>optional string metadata = 86866735;</code>
611    *
612    * @return The bytes for metadata.
613    */
614   @java.lang.Override
getMetadataBytes()615   public com.google.protobuf.ByteString getMetadataBytes() {
616     java.lang.Object ref = metadata_;
617     if (ref instanceof java.lang.String) {
618       com.google.protobuf.ByteString b =
619           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
620       metadata_ = b;
621       return b;
622     } else {
623       return (com.google.protobuf.ByteString) ref;
624     }
625   }
626 
627   public static final int METADATA_FIELDS_FIELD_NUMBER = 378461641;
628 
629   @SuppressWarnings("serial")
630   private com.google.protobuf.LazyStringList metadataFields_;
631   /**
632    *
633    *
634    * <pre>
635    * Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
636    * </pre>
637    *
638    * <code>repeated string metadata_fields = 378461641;</code>
639    *
640    * @return A list containing the metadataFields.
641    */
getMetadataFieldsList()642   public com.google.protobuf.ProtocolStringList getMetadataFieldsList() {
643     return metadataFields_;
644   }
645   /**
646    *
647    *
648    * <pre>
649    * Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
650    * </pre>
651    *
652    * <code>repeated string metadata_fields = 378461641;</code>
653    *
654    * @return The count of metadataFields.
655    */
getMetadataFieldsCount()656   public int getMetadataFieldsCount() {
657     return metadataFields_.size();
658   }
659   /**
660    *
661    *
662    * <pre>
663    * Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
664    * </pre>
665    *
666    * <code>repeated string metadata_fields = 378461641;</code>
667    *
668    * @param index The index of the element to return.
669    * @return The metadataFields at the given index.
670    */
getMetadataFields(int index)671   public java.lang.String getMetadataFields(int index) {
672     return metadataFields_.get(index);
673   }
674   /**
675    *
676    *
677    * <pre>
678    * Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
679    * </pre>
680    *
681    * <code>repeated string metadata_fields = 378461641;</code>
682    *
683    * @param index The index of the value to return.
684    * @return The bytes of the metadataFields at the given index.
685    */
getMetadataFieldsBytes(int index)686   public com.google.protobuf.ByteString getMetadataFieldsBytes(int index) {
687     return metadataFields_.getByteString(index);
688   }
689 
690   private byte memoizedIsInitialized = -1;
691 
692   @java.lang.Override
isInitialized()693   public final boolean isInitialized() {
694     byte isInitialized = memoizedIsInitialized;
695     if (isInitialized == 1) return true;
696     if (isInitialized == 0) return false;
697 
698     memoizedIsInitialized = 1;
699     return true;
700   }
701 
702   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)703   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
704     if (((bitField0_ & 0x00000010) != 0)) {
705       com.google.protobuf.GeneratedMessageV3.writeString(output, 86866735, metadata_);
706     }
707     if (((bitField0_ & 0x00000001) != 0)) {
708       com.google.protobuf.GeneratedMessageV3.writeString(output, 174919042, aggregationInterval_);
709     }
710     if (((bitField0_ & 0x00000004) != 0)) {
711       com.google.protobuf.GeneratedMessageV3.writeString(output, 183374428, filterExpr_);
712     }
713     if (((bitField0_ & 0x00000002) != 0)) {
714       output.writeBool(311764355, enable_);
715     }
716     for (int i = 0; i < metadataFields_.size(); i++) {
717       com.google.protobuf.GeneratedMessageV3.writeString(
718           output, 378461641, metadataFields_.getRaw(i));
719     }
720     if (((bitField0_ & 0x00000008) != 0)) {
721       output.writeFloat(530150360, flowSampling_);
722     }
723     getUnknownFields().writeTo(output);
724   }
725 
726   @java.lang.Override
getSerializedSize()727   public int getSerializedSize() {
728     int size = memoizedSize;
729     if (size != -1) return size;
730 
731     size = 0;
732     if (((bitField0_ & 0x00000010) != 0)) {
733       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(86866735, metadata_);
734     }
735     if (((bitField0_ & 0x00000001) != 0)) {
736       size +=
737           com.google.protobuf.GeneratedMessageV3.computeStringSize(174919042, aggregationInterval_);
738     }
739     if (((bitField0_ & 0x00000004) != 0)) {
740       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(183374428, filterExpr_);
741     }
742     if (((bitField0_ & 0x00000002) != 0)) {
743       size += com.google.protobuf.CodedOutputStream.computeBoolSize(311764355, enable_);
744     }
745     {
746       int dataSize = 0;
747       for (int i = 0; i < metadataFields_.size(); i++) {
748         dataSize += computeStringSizeNoTag(metadataFields_.getRaw(i));
749       }
750       size += dataSize;
751       size += 5 * getMetadataFieldsList().size();
752     }
753     if (((bitField0_ & 0x00000008) != 0)) {
754       size += com.google.protobuf.CodedOutputStream.computeFloatSize(530150360, flowSampling_);
755     }
756     size += getUnknownFields().getSerializedSize();
757     memoizedSize = size;
758     return size;
759   }
760 
761   @java.lang.Override
equals(final java.lang.Object obj)762   public boolean equals(final java.lang.Object obj) {
763     if (obj == this) {
764       return true;
765     }
766     if (!(obj instanceof com.google.cloud.compute.v1.SubnetworkLogConfig)) {
767       return super.equals(obj);
768     }
769     com.google.cloud.compute.v1.SubnetworkLogConfig other =
770         (com.google.cloud.compute.v1.SubnetworkLogConfig) obj;
771 
772     if (hasAggregationInterval() != other.hasAggregationInterval()) return false;
773     if (hasAggregationInterval()) {
774       if (!getAggregationInterval().equals(other.getAggregationInterval())) return false;
775     }
776     if (hasEnable() != other.hasEnable()) return false;
777     if (hasEnable()) {
778       if (getEnable() != other.getEnable()) return false;
779     }
780     if (hasFilterExpr() != other.hasFilterExpr()) return false;
781     if (hasFilterExpr()) {
782       if (!getFilterExpr().equals(other.getFilterExpr())) return false;
783     }
784     if (hasFlowSampling() != other.hasFlowSampling()) return false;
785     if (hasFlowSampling()) {
786       if (java.lang.Float.floatToIntBits(getFlowSampling())
787           != java.lang.Float.floatToIntBits(other.getFlowSampling())) return false;
788     }
789     if (hasMetadata() != other.hasMetadata()) return false;
790     if (hasMetadata()) {
791       if (!getMetadata().equals(other.getMetadata())) return false;
792     }
793     if (!getMetadataFieldsList().equals(other.getMetadataFieldsList())) return false;
794     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
795     return true;
796   }
797 
798   @java.lang.Override
hashCode()799   public int hashCode() {
800     if (memoizedHashCode != 0) {
801       return memoizedHashCode;
802     }
803     int hash = 41;
804     hash = (19 * hash) + getDescriptor().hashCode();
805     if (hasAggregationInterval()) {
806       hash = (37 * hash) + AGGREGATION_INTERVAL_FIELD_NUMBER;
807       hash = (53 * hash) + getAggregationInterval().hashCode();
808     }
809     if (hasEnable()) {
810       hash = (37 * hash) + ENABLE_FIELD_NUMBER;
811       hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnable());
812     }
813     if (hasFilterExpr()) {
814       hash = (37 * hash) + FILTER_EXPR_FIELD_NUMBER;
815       hash = (53 * hash) + getFilterExpr().hashCode();
816     }
817     if (hasFlowSampling()) {
818       hash = (37 * hash) + FLOW_SAMPLING_FIELD_NUMBER;
819       hash = (53 * hash) + java.lang.Float.floatToIntBits(getFlowSampling());
820     }
821     if (hasMetadata()) {
822       hash = (37 * hash) + METADATA_FIELD_NUMBER;
823       hash = (53 * hash) + getMetadata().hashCode();
824     }
825     if (getMetadataFieldsCount() > 0) {
826       hash = (37 * hash) + METADATA_FIELDS_FIELD_NUMBER;
827       hash = (53 * hash) + getMetadataFieldsList().hashCode();
828     }
829     hash = (29 * hash) + getUnknownFields().hashCode();
830     memoizedHashCode = hash;
831     return hash;
832   }
833 
parseFrom(java.nio.ByteBuffer data)834   public static com.google.cloud.compute.v1.SubnetworkLogConfig parseFrom(java.nio.ByteBuffer data)
835       throws com.google.protobuf.InvalidProtocolBufferException {
836     return PARSER.parseFrom(data);
837   }
838 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)839   public static com.google.cloud.compute.v1.SubnetworkLogConfig parseFrom(
840       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
841       throws com.google.protobuf.InvalidProtocolBufferException {
842     return PARSER.parseFrom(data, extensionRegistry);
843   }
844 
parseFrom( com.google.protobuf.ByteString data)845   public static com.google.cloud.compute.v1.SubnetworkLogConfig parseFrom(
846       com.google.protobuf.ByteString data)
847       throws com.google.protobuf.InvalidProtocolBufferException {
848     return PARSER.parseFrom(data);
849   }
850 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)851   public static com.google.cloud.compute.v1.SubnetworkLogConfig parseFrom(
852       com.google.protobuf.ByteString data,
853       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
854       throws com.google.protobuf.InvalidProtocolBufferException {
855     return PARSER.parseFrom(data, extensionRegistry);
856   }
857 
parseFrom(byte[] data)858   public static com.google.cloud.compute.v1.SubnetworkLogConfig parseFrom(byte[] data)
859       throws com.google.protobuf.InvalidProtocolBufferException {
860     return PARSER.parseFrom(data);
861   }
862 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)863   public static com.google.cloud.compute.v1.SubnetworkLogConfig parseFrom(
864       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
865       throws com.google.protobuf.InvalidProtocolBufferException {
866     return PARSER.parseFrom(data, extensionRegistry);
867   }
868 
parseFrom(java.io.InputStream input)869   public static com.google.cloud.compute.v1.SubnetworkLogConfig parseFrom(java.io.InputStream input)
870       throws java.io.IOException {
871     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
872   }
873 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)874   public static com.google.cloud.compute.v1.SubnetworkLogConfig parseFrom(
875       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
876       throws java.io.IOException {
877     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
878         PARSER, input, extensionRegistry);
879   }
880 
parseDelimitedFrom( java.io.InputStream input)881   public static com.google.cloud.compute.v1.SubnetworkLogConfig parseDelimitedFrom(
882       java.io.InputStream input) throws java.io.IOException {
883     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
884   }
885 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)886   public static com.google.cloud.compute.v1.SubnetworkLogConfig parseDelimitedFrom(
887       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
888       throws java.io.IOException {
889     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
890         PARSER, input, extensionRegistry);
891   }
892 
parseFrom( com.google.protobuf.CodedInputStream input)893   public static com.google.cloud.compute.v1.SubnetworkLogConfig parseFrom(
894       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
895     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
896   }
897 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)898   public static com.google.cloud.compute.v1.SubnetworkLogConfig parseFrom(
899       com.google.protobuf.CodedInputStream input,
900       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
901       throws java.io.IOException {
902     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
903         PARSER, input, extensionRegistry);
904   }
905 
906   @java.lang.Override
newBuilderForType()907   public Builder newBuilderForType() {
908     return newBuilder();
909   }
910 
newBuilder()911   public static Builder newBuilder() {
912     return DEFAULT_INSTANCE.toBuilder();
913   }
914 
newBuilder(com.google.cloud.compute.v1.SubnetworkLogConfig prototype)915   public static Builder newBuilder(com.google.cloud.compute.v1.SubnetworkLogConfig prototype) {
916     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
917   }
918 
919   @java.lang.Override
toBuilder()920   public Builder toBuilder() {
921     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
922   }
923 
924   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)925   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
926     Builder builder = new Builder(parent);
927     return builder;
928   }
929   /**
930    *
931    *
932    * <pre>
933    * The available logging options for this subnetwork.
934    * </pre>
935    *
936    * Protobuf type {@code google.cloud.compute.v1.SubnetworkLogConfig}
937    */
938   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
939       implements
940       // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.SubnetworkLogConfig)
941       com.google.cloud.compute.v1.SubnetworkLogConfigOrBuilder {
getDescriptor()942     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
943       return com.google.cloud.compute.v1.Compute
944           .internal_static_google_cloud_compute_v1_SubnetworkLogConfig_descriptor;
945     }
946 
947     @java.lang.Override
948     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()949         internalGetFieldAccessorTable() {
950       return com.google.cloud.compute.v1.Compute
951           .internal_static_google_cloud_compute_v1_SubnetworkLogConfig_fieldAccessorTable
952           .ensureFieldAccessorsInitialized(
953               com.google.cloud.compute.v1.SubnetworkLogConfig.class,
954               com.google.cloud.compute.v1.SubnetworkLogConfig.Builder.class);
955     }
956 
957     // Construct using com.google.cloud.compute.v1.SubnetworkLogConfig.newBuilder()
Builder()958     private Builder() {}
959 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)960     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
961       super(parent);
962     }
963 
964     @java.lang.Override
clear()965     public Builder clear() {
966       super.clear();
967       bitField0_ = 0;
968       aggregationInterval_ = "";
969       enable_ = false;
970       filterExpr_ = "";
971       flowSampling_ = 0F;
972       metadata_ = "";
973       metadataFields_ = com.google.protobuf.LazyStringArrayList.EMPTY;
974       bitField0_ = (bitField0_ & ~0x00000020);
975       return this;
976     }
977 
978     @java.lang.Override
getDescriptorForType()979     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
980       return com.google.cloud.compute.v1.Compute
981           .internal_static_google_cloud_compute_v1_SubnetworkLogConfig_descriptor;
982     }
983 
984     @java.lang.Override
getDefaultInstanceForType()985     public com.google.cloud.compute.v1.SubnetworkLogConfig getDefaultInstanceForType() {
986       return com.google.cloud.compute.v1.SubnetworkLogConfig.getDefaultInstance();
987     }
988 
989     @java.lang.Override
build()990     public com.google.cloud.compute.v1.SubnetworkLogConfig build() {
991       com.google.cloud.compute.v1.SubnetworkLogConfig result = buildPartial();
992       if (!result.isInitialized()) {
993         throw newUninitializedMessageException(result);
994       }
995       return result;
996     }
997 
998     @java.lang.Override
buildPartial()999     public com.google.cloud.compute.v1.SubnetworkLogConfig buildPartial() {
1000       com.google.cloud.compute.v1.SubnetworkLogConfig result =
1001           new com.google.cloud.compute.v1.SubnetworkLogConfig(this);
1002       buildPartialRepeatedFields(result);
1003       if (bitField0_ != 0) {
1004         buildPartial0(result);
1005       }
1006       onBuilt();
1007       return result;
1008     }
1009 
buildPartialRepeatedFields( com.google.cloud.compute.v1.SubnetworkLogConfig result)1010     private void buildPartialRepeatedFields(
1011         com.google.cloud.compute.v1.SubnetworkLogConfig result) {
1012       if (((bitField0_ & 0x00000020) != 0)) {
1013         metadataFields_ = metadataFields_.getUnmodifiableView();
1014         bitField0_ = (bitField0_ & ~0x00000020);
1015       }
1016       result.metadataFields_ = metadataFields_;
1017     }
1018 
buildPartial0(com.google.cloud.compute.v1.SubnetworkLogConfig result)1019     private void buildPartial0(com.google.cloud.compute.v1.SubnetworkLogConfig result) {
1020       int from_bitField0_ = bitField0_;
1021       int to_bitField0_ = 0;
1022       if (((from_bitField0_ & 0x00000001) != 0)) {
1023         result.aggregationInterval_ = aggregationInterval_;
1024         to_bitField0_ |= 0x00000001;
1025       }
1026       if (((from_bitField0_ & 0x00000002) != 0)) {
1027         result.enable_ = enable_;
1028         to_bitField0_ |= 0x00000002;
1029       }
1030       if (((from_bitField0_ & 0x00000004) != 0)) {
1031         result.filterExpr_ = filterExpr_;
1032         to_bitField0_ |= 0x00000004;
1033       }
1034       if (((from_bitField0_ & 0x00000008) != 0)) {
1035         result.flowSampling_ = flowSampling_;
1036         to_bitField0_ |= 0x00000008;
1037       }
1038       if (((from_bitField0_ & 0x00000010) != 0)) {
1039         result.metadata_ = metadata_;
1040         to_bitField0_ |= 0x00000010;
1041       }
1042       result.bitField0_ |= to_bitField0_;
1043     }
1044 
1045     @java.lang.Override
clone()1046     public Builder clone() {
1047       return super.clone();
1048     }
1049 
1050     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1051     public Builder setField(
1052         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1053       return super.setField(field, value);
1054     }
1055 
1056     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1057     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
1058       return super.clearField(field);
1059     }
1060 
1061     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1062     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1063       return super.clearOneof(oneof);
1064     }
1065 
1066     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1067     public Builder setRepeatedField(
1068         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
1069       return super.setRepeatedField(field, index, value);
1070     }
1071 
1072     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1073     public Builder addRepeatedField(
1074         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1075       return super.addRepeatedField(field, value);
1076     }
1077 
1078     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)1079     public Builder mergeFrom(com.google.protobuf.Message other) {
1080       if (other instanceof com.google.cloud.compute.v1.SubnetworkLogConfig) {
1081         return mergeFrom((com.google.cloud.compute.v1.SubnetworkLogConfig) other);
1082       } else {
1083         super.mergeFrom(other);
1084         return this;
1085       }
1086     }
1087 
mergeFrom(com.google.cloud.compute.v1.SubnetworkLogConfig other)1088     public Builder mergeFrom(com.google.cloud.compute.v1.SubnetworkLogConfig other) {
1089       if (other == com.google.cloud.compute.v1.SubnetworkLogConfig.getDefaultInstance())
1090         return this;
1091       if (other.hasAggregationInterval()) {
1092         aggregationInterval_ = other.aggregationInterval_;
1093         bitField0_ |= 0x00000001;
1094         onChanged();
1095       }
1096       if (other.hasEnable()) {
1097         setEnable(other.getEnable());
1098       }
1099       if (other.hasFilterExpr()) {
1100         filterExpr_ = other.filterExpr_;
1101         bitField0_ |= 0x00000004;
1102         onChanged();
1103       }
1104       if (other.hasFlowSampling()) {
1105         setFlowSampling(other.getFlowSampling());
1106       }
1107       if (other.hasMetadata()) {
1108         metadata_ = other.metadata_;
1109         bitField0_ |= 0x00000010;
1110         onChanged();
1111       }
1112       if (!other.metadataFields_.isEmpty()) {
1113         if (metadataFields_.isEmpty()) {
1114           metadataFields_ = other.metadataFields_;
1115           bitField0_ = (bitField0_ & ~0x00000020);
1116         } else {
1117           ensureMetadataFieldsIsMutable();
1118           metadataFields_.addAll(other.metadataFields_);
1119         }
1120         onChanged();
1121       }
1122       this.mergeUnknownFields(other.getUnknownFields());
1123       onChanged();
1124       return this;
1125     }
1126 
1127     @java.lang.Override
isInitialized()1128     public final boolean isInitialized() {
1129       return true;
1130     }
1131 
1132     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1133     public Builder mergeFrom(
1134         com.google.protobuf.CodedInputStream input,
1135         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1136         throws java.io.IOException {
1137       if (extensionRegistry == null) {
1138         throw new java.lang.NullPointerException();
1139       }
1140       try {
1141         boolean done = false;
1142         while (!done) {
1143           int tag = input.readTag();
1144           switch (tag) {
1145             case 0:
1146               done = true;
1147               break;
1148             case 694933882:
1149               {
1150                 metadata_ = input.readStringRequireUtf8();
1151                 bitField0_ |= 0x00000010;
1152                 break;
1153               } // case 694933882
1154             case 1399352338:
1155               {
1156                 aggregationInterval_ = input.readStringRequireUtf8();
1157                 bitField0_ |= 0x00000001;
1158                 break;
1159               } // case 1399352338
1160             case 1466995426:
1161               {
1162                 filterExpr_ = input.readStringRequireUtf8();
1163                 bitField0_ |= 0x00000004;
1164                 break;
1165               } // case 1466995426
1166             case -1800852456:
1167               {
1168                 enable_ = input.readBool();
1169                 bitField0_ |= 0x00000002;
1170                 break;
1171               } // case -1800852456
1172             case -1267274166:
1173               {
1174                 java.lang.String s = input.readStringRequireUtf8();
1175                 ensureMetadataFieldsIsMutable();
1176                 metadataFields_.add(s);
1177                 break;
1178               } // case -1267274166
1179             case -53764411:
1180               {
1181                 flowSampling_ = input.readFloat();
1182                 bitField0_ |= 0x00000008;
1183                 break;
1184               } // case -53764411
1185             default:
1186               {
1187                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1188                   done = true; // was an endgroup tag
1189                 }
1190                 break;
1191               } // default:
1192           } // switch (tag)
1193         } // while (!done)
1194       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1195         throw e.unwrapIOException();
1196       } finally {
1197         onChanged();
1198       } // finally
1199       return this;
1200     }
1201 
1202     private int bitField0_;
1203 
1204     private java.lang.Object aggregationInterval_ = "";
1205     /**
1206      *
1207      *
1208      * <pre>
1209      * 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.
1210      * Check the AggregationInterval enum for the list of possible values.
1211      * </pre>
1212      *
1213      * <code>optional string aggregation_interval = 174919042;</code>
1214      *
1215      * @return Whether the aggregationInterval field is set.
1216      */
hasAggregationInterval()1217     public boolean hasAggregationInterval() {
1218       return ((bitField0_ & 0x00000001) != 0);
1219     }
1220     /**
1221      *
1222      *
1223      * <pre>
1224      * 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.
1225      * Check the AggregationInterval enum for the list of possible values.
1226      * </pre>
1227      *
1228      * <code>optional string aggregation_interval = 174919042;</code>
1229      *
1230      * @return The aggregationInterval.
1231      */
getAggregationInterval()1232     public java.lang.String getAggregationInterval() {
1233       java.lang.Object ref = aggregationInterval_;
1234       if (!(ref instanceof java.lang.String)) {
1235         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1236         java.lang.String s = bs.toStringUtf8();
1237         aggregationInterval_ = s;
1238         return s;
1239       } else {
1240         return (java.lang.String) ref;
1241       }
1242     }
1243     /**
1244      *
1245      *
1246      * <pre>
1247      * 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.
1248      * Check the AggregationInterval enum for the list of possible values.
1249      * </pre>
1250      *
1251      * <code>optional string aggregation_interval = 174919042;</code>
1252      *
1253      * @return The bytes for aggregationInterval.
1254      */
getAggregationIntervalBytes()1255     public com.google.protobuf.ByteString getAggregationIntervalBytes() {
1256       java.lang.Object ref = aggregationInterval_;
1257       if (ref instanceof String) {
1258         com.google.protobuf.ByteString b =
1259             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1260         aggregationInterval_ = b;
1261         return b;
1262       } else {
1263         return (com.google.protobuf.ByteString) ref;
1264       }
1265     }
1266     /**
1267      *
1268      *
1269      * <pre>
1270      * 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.
1271      * Check the AggregationInterval enum for the list of possible values.
1272      * </pre>
1273      *
1274      * <code>optional string aggregation_interval = 174919042;</code>
1275      *
1276      * @param value The aggregationInterval to set.
1277      * @return This builder for chaining.
1278      */
setAggregationInterval(java.lang.String value)1279     public Builder setAggregationInterval(java.lang.String value) {
1280       if (value == null) {
1281         throw new NullPointerException();
1282       }
1283       aggregationInterval_ = value;
1284       bitField0_ |= 0x00000001;
1285       onChanged();
1286       return this;
1287     }
1288     /**
1289      *
1290      *
1291      * <pre>
1292      * 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.
1293      * Check the AggregationInterval enum for the list of possible values.
1294      * </pre>
1295      *
1296      * <code>optional string aggregation_interval = 174919042;</code>
1297      *
1298      * @return This builder for chaining.
1299      */
clearAggregationInterval()1300     public Builder clearAggregationInterval() {
1301       aggregationInterval_ = getDefaultInstance().getAggregationInterval();
1302       bitField0_ = (bitField0_ & ~0x00000001);
1303       onChanged();
1304       return this;
1305     }
1306     /**
1307      *
1308      *
1309      * <pre>
1310      * 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.
1311      * Check the AggregationInterval enum for the list of possible values.
1312      * </pre>
1313      *
1314      * <code>optional string aggregation_interval = 174919042;</code>
1315      *
1316      * @param value The bytes for aggregationInterval to set.
1317      * @return This builder for chaining.
1318      */
setAggregationIntervalBytes(com.google.protobuf.ByteString value)1319     public Builder setAggregationIntervalBytes(com.google.protobuf.ByteString value) {
1320       if (value == null) {
1321         throw new NullPointerException();
1322       }
1323       checkByteStringIsUtf8(value);
1324       aggregationInterval_ = value;
1325       bitField0_ |= 0x00000001;
1326       onChanged();
1327       return this;
1328     }
1329 
1330     private boolean enable_;
1331     /**
1332      *
1333      *
1334      * <pre>
1335      * 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.
1336      * </pre>
1337      *
1338      * <code>optional bool enable = 311764355;</code>
1339      *
1340      * @return Whether the enable field is set.
1341      */
1342     @java.lang.Override
hasEnable()1343     public boolean hasEnable() {
1344       return ((bitField0_ & 0x00000002) != 0);
1345     }
1346     /**
1347      *
1348      *
1349      * <pre>
1350      * 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.
1351      * </pre>
1352      *
1353      * <code>optional bool enable = 311764355;</code>
1354      *
1355      * @return The enable.
1356      */
1357     @java.lang.Override
getEnable()1358     public boolean getEnable() {
1359       return enable_;
1360     }
1361     /**
1362      *
1363      *
1364      * <pre>
1365      * 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.
1366      * </pre>
1367      *
1368      * <code>optional bool enable = 311764355;</code>
1369      *
1370      * @param value The enable to set.
1371      * @return This builder for chaining.
1372      */
setEnable(boolean value)1373     public Builder setEnable(boolean value) {
1374 
1375       enable_ = value;
1376       bitField0_ |= 0x00000002;
1377       onChanged();
1378       return this;
1379     }
1380     /**
1381      *
1382      *
1383      * <pre>
1384      * 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.
1385      * </pre>
1386      *
1387      * <code>optional bool enable = 311764355;</code>
1388      *
1389      * @return This builder for chaining.
1390      */
clearEnable()1391     public Builder clearEnable() {
1392       bitField0_ = (bitField0_ & ~0x00000002);
1393       enable_ = false;
1394       onChanged();
1395       return this;
1396     }
1397 
1398     private java.lang.Object filterExpr_ = "";
1399     /**
1400      *
1401      *
1402      * <pre>
1403      * 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.
1404      * </pre>
1405      *
1406      * <code>optional string filter_expr = 183374428;</code>
1407      *
1408      * @return Whether the filterExpr field is set.
1409      */
hasFilterExpr()1410     public boolean hasFilterExpr() {
1411       return ((bitField0_ & 0x00000004) != 0);
1412     }
1413     /**
1414      *
1415      *
1416      * <pre>
1417      * 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.
1418      * </pre>
1419      *
1420      * <code>optional string filter_expr = 183374428;</code>
1421      *
1422      * @return The filterExpr.
1423      */
getFilterExpr()1424     public java.lang.String getFilterExpr() {
1425       java.lang.Object ref = filterExpr_;
1426       if (!(ref instanceof java.lang.String)) {
1427         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1428         java.lang.String s = bs.toStringUtf8();
1429         filterExpr_ = s;
1430         return s;
1431       } else {
1432         return (java.lang.String) ref;
1433       }
1434     }
1435     /**
1436      *
1437      *
1438      * <pre>
1439      * 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.
1440      * </pre>
1441      *
1442      * <code>optional string filter_expr = 183374428;</code>
1443      *
1444      * @return The bytes for filterExpr.
1445      */
getFilterExprBytes()1446     public com.google.protobuf.ByteString getFilterExprBytes() {
1447       java.lang.Object ref = filterExpr_;
1448       if (ref instanceof String) {
1449         com.google.protobuf.ByteString b =
1450             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1451         filterExpr_ = b;
1452         return b;
1453       } else {
1454         return (com.google.protobuf.ByteString) ref;
1455       }
1456     }
1457     /**
1458      *
1459      *
1460      * <pre>
1461      * 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.
1462      * </pre>
1463      *
1464      * <code>optional string filter_expr = 183374428;</code>
1465      *
1466      * @param value The filterExpr to set.
1467      * @return This builder for chaining.
1468      */
setFilterExpr(java.lang.String value)1469     public Builder setFilterExpr(java.lang.String value) {
1470       if (value == null) {
1471         throw new NullPointerException();
1472       }
1473       filterExpr_ = value;
1474       bitField0_ |= 0x00000004;
1475       onChanged();
1476       return this;
1477     }
1478     /**
1479      *
1480      *
1481      * <pre>
1482      * 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.
1483      * </pre>
1484      *
1485      * <code>optional string filter_expr = 183374428;</code>
1486      *
1487      * @return This builder for chaining.
1488      */
clearFilterExpr()1489     public Builder clearFilterExpr() {
1490       filterExpr_ = getDefaultInstance().getFilterExpr();
1491       bitField0_ = (bitField0_ & ~0x00000004);
1492       onChanged();
1493       return this;
1494     }
1495     /**
1496      *
1497      *
1498      * <pre>
1499      * 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.
1500      * </pre>
1501      *
1502      * <code>optional string filter_expr = 183374428;</code>
1503      *
1504      * @param value The bytes for filterExpr to set.
1505      * @return This builder for chaining.
1506      */
setFilterExprBytes(com.google.protobuf.ByteString value)1507     public Builder setFilterExprBytes(com.google.protobuf.ByteString value) {
1508       if (value == null) {
1509         throw new NullPointerException();
1510       }
1511       checkByteStringIsUtf8(value);
1512       filterExpr_ = value;
1513       bitField0_ |= 0x00000004;
1514       onChanged();
1515       return this;
1516     }
1517 
1518     private float flowSampling_;
1519     /**
1520      *
1521      *
1522      * <pre>
1523      * 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.
1524      * </pre>
1525      *
1526      * <code>optional float flow_sampling = 530150360;</code>
1527      *
1528      * @return Whether the flowSampling field is set.
1529      */
1530     @java.lang.Override
hasFlowSampling()1531     public boolean hasFlowSampling() {
1532       return ((bitField0_ & 0x00000008) != 0);
1533     }
1534     /**
1535      *
1536      *
1537      * <pre>
1538      * 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.
1539      * </pre>
1540      *
1541      * <code>optional float flow_sampling = 530150360;</code>
1542      *
1543      * @return The flowSampling.
1544      */
1545     @java.lang.Override
getFlowSampling()1546     public float getFlowSampling() {
1547       return flowSampling_;
1548     }
1549     /**
1550      *
1551      *
1552      * <pre>
1553      * 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.
1554      * </pre>
1555      *
1556      * <code>optional float flow_sampling = 530150360;</code>
1557      *
1558      * @param value The flowSampling to set.
1559      * @return This builder for chaining.
1560      */
setFlowSampling(float value)1561     public Builder setFlowSampling(float value) {
1562 
1563       flowSampling_ = value;
1564       bitField0_ |= 0x00000008;
1565       onChanged();
1566       return this;
1567     }
1568     /**
1569      *
1570      *
1571      * <pre>
1572      * 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.
1573      * </pre>
1574      *
1575      * <code>optional float flow_sampling = 530150360;</code>
1576      *
1577      * @return This builder for chaining.
1578      */
clearFlowSampling()1579     public Builder clearFlowSampling() {
1580       bitField0_ = (bitField0_ & ~0x00000008);
1581       flowSampling_ = 0F;
1582       onChanged();
1583       return this;
1584     }
1585 
1586     private java.lang.Object metadata_ = "";
1587     /**
1588      *
1589      *
1590      * <pre>
1591      * 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.
1592      * Check the Metadata enum for the list of possible values.
1593      * </pre>
1594      *
1595      * <code>optional string metadata = 86866735;</code>
1596      *
1597      * @return Whether the metadata field is set.
1598      */
hasMetadata()1599     public boolean hasMetadata() {
1600       return ((bitField0_ & 0x00000010) != 0);
1601     }
1602     /**
1603      *
1604      *
1605      * <pre>
1606      * 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.
1607      * Check the Metadata enum for the list of possible values.
1608      * </pre>
1609      *
1610      * <code>optional string metadata = 86866735;</code>
1611      *
1612      * @return The metadata.
1613      */
getMetadata()1614     public java.lang.String getMetadata() {
1615       java.lang.Object ref = metadata_;
1616       if (!(ref instanceof java.lang.String)) {
1617         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1618         java.lang.String s = bs.toStringUtf8();
1619         metadata_ = s;
1620         return s;
1621       } else {
1622         return (java.lang.String) ref;
1623       }
1624     }
1625     /**
1626      *
1627      *
1628      * <pre>
1629      * 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.
1630      * Check the Metadata enum for the list of possible values.
1631      * </pre>
1632      *
1633      * <code>optional string metadata = 86866735;</code>
1634      *
1635      * @return The bytes for metadata.
1636      */
getMetadataBytes()1637     public com.google.protobuf.ByteString getMetadataBytes() {
1638       java.lang.Object ref = metadata_;
1639       if (ref instanceof String) {
1640         com.google.protobuf.ByteString b =
1641             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1642         metadata_ = b;
1643         return b;
1644       } else {
1645         return (com.google.protobuf.ByteString) ref;
1646       }
1647     }
1648     /**
1649      *
1650      *
1651      * <pre>
1652      * 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.
1653      * Check the Metadata enum for the list of possible values.
1654      * </pre>
1655      *
1656      * <code>optional string metadata = 86866735;</code>
1657      *
1658      * @param value The metadata to set.
1659      * @return This builder for chaining.
1660      */
setMetadata(java.lang.String value)1661     public Builder setMetadata(java.lang.String value) {
1662       if (value == null) {
1663         throw new NullPointerException();
1664       }
1665       metadata_ = value;
1666       bitField0_ |= 0x00000010;
1667       onChanged();
1668       return this;
1669     }
1670     /**
1671      *
1672      *
1673      * <pre>
1674      * 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.
1675      * Check the Metadata enum for the list of possible values.
1676      * </pre>
1677      *
1678      * <code>optional string metadata = 86866735;</code>
1679      *
1680      * @return This builder for chaining.
1681      */
clearMetadata()1682     public Builder clearMetadata() {
1683       metadata_ = getDefaultInstance().getMetadata();
1684       bitField0_ = (bitField0_ & ~0x00000010);
1685       onChanged();
1686       return this;
1687     }
1688     /**
1689      *
1690      *
1691      * <pre>
1692      * 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.
1693      * Check the Metadata enum for the list of possible values.
1694      * </pre>
1695      *
1696      * <code>optional string metadata = 86866735;</code>
1697      *
1698      * @param value The bytes for metadata to set.
1699      * @return This builder for chaining.
1700      */
setMetadataBytes(com.google.protobuf.ByteString value)1701     public Builder setMetadataBytes(com.google.protobuf.ByteString value) {
1702       if (value == null) {
1703         throw new NullPointerException();
1704       }
1705       checkByteStringIsUtf8(value);
1706       metadata_ = value;
1707       bitField0_ |= 0x00000010;
1708       onChanged();
1709       return this;
1710     }
1711 
1712     private com.google.protobuf.LazyStringList metadataFields_ =
1713         com.google.protobuf.LazyStringArrayList.EMPTY;
1714 
ensureMetadataFieldsIsMutable()1715     private void ensureMetadataFieldsIsMutable() {
1716       if (!((bitField0_ & 0x00000020) != 0)) {
1717         metadataFields_ = new com.google.protobuf.LazyStringArrayList(metadataFields_);
1718         bitField0_ |= 0x00000020;
1719       }
1720     }
1721     /**
1722      *
1723      *
1724      * <pre>
1725      * Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
1726      * </pre>
1727      *
1728      * <code>repeated string metadata_fields = 378461641;</code>
1729      *
1730      * @return A list containing the metadataFields.
1731      */
getMetadataFieldsList()1732     public com.google.protobuf.ProtocolStringList getMetadataFieldsList() {
1733       return metadataFields_.getUnmodifiableView();
1734     }
1735     /**
1736      *
1737      *
1738      * <pre>
1739      * Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
1740      * </pre>
1741      *
1742      * <code>repeated string metadata_fields = 378461641;</code>
1743      *
1744      * @return The count of metadataFields.
1745      */
getMetadataFieldsCount()1746     public int getMetadataFieldsCount() {
1747       return metadataFields_.size();
1748     }
1749     /**
1750      *
1751      *
1752      * <pre>
1753      * Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
1754      * </pre>
1755      *
1756      * <code>repeated string metadata_fields = 378461641;</code>
1757      *
1758      * @param index The index of the element to return.
1759      * @return The metadataFields at the given index.
1760      */
getMetadataFields(int index)1761     public java.lang.String getMetadataFields(int index) {
1762       return metadataFields_.get(index);
1763     }
1764     /**
1765      *
1766      *
1767      * <pre>
1768      * Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
1769      * </pre>
1770      *
1771      * <code>repeated string metadata_fields = 378461641;</code>
1772      *
1773      * @param index The index of the value to return.
1774      * @return The bytes of the metadataFields at the given index.
1775      */
getMetadataFieldsBytes(int index)1776     public com.google.protobuf.ByteString getMetadataFieldsBytes(int index) {
1777       return metadataFields_.getByteString(index);
1778     }
1779     /**
1780      *
1781      *
1782      * <pre>
1783      * Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
1784      * </pre>
1785      *
1786      * <code>repeated string metadata_fields = 378461641;</code>
1787      *
1788      * @param index The index to set the value at.
1789      * @param value The metadataFields to set.
1790      * @return This builder for chaining.
1791      */
setMetadataFields(int index, java.lang.String value)1792     public Builder setMetadataFields(int index, java.lang.String value) {
1793       if (value == null) {
1794         throw new NullPointerException();
1795       }
1796       ensureMetadataFieldsIsMutable();
1797       metadataFields_.set(index, value);
1798       onChanged();
1799       return this;
1800     }
1801     /**
1802      *
1803      *
1804      * <pre>
1805      * Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
1806      * </pre>
1807      *
1808      * <code>repeated string metadata_fields = 378461641;</code>
1809      *
1810      * @param value The metadataFields to add.
1811      * @return This builder for chaining.
1812      */
addMetadataFields(java.lang.String value)1813     public Builder addMetadataFields(java.lang.String value) {
1814       if (value == null) {
1815         throw new NullPointerException();
1816       }
1817       ensureMetadataFieldsIsMutable();
1818       metadataFields_.add(value);
1819       onChanged();
1820       return this;
1821     }
1822     /**
1823      *
1824      *
1825      * <pre>
1826      * Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
1827      * </pre>
1828      *
1829      * <code>repeated string metadata_fields = 378461641;</code>
1830      *
1831      * @param values The metadataFields to add.
1832      * @return This builder for chaining.
1833      */
addAllMetadataFields(java.lang.Iterable<java.lang.String> values)1834     public Builder addAllMetadataFields(java.lang.Iterable<java.lang.String> values) {
1835       ensureMetadataFieldsIsMutable();
1836       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metadataFields_);
1837       onChanged();
1838       return this;
1839     }
1840     /**
1841      *
1842      *
1843      * <pre>
1844      * Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
1845      * </pre>
1846      *
1847      * <code>repeated string metadata_fields = 378461641;</code>
1848      *
1849      * @return This builder for chaining.
1850      */
clearMetadataFields()1851     public Builder clearMetadataFields() {
1852       metadataFields_ = com.google.protobuf.LazyStringArrayList.EMPTY;
1853       bitField0_ = (bitField0_ & ~0x00000020);
1854       onChanged();
1855       return this;
1856     }
1857     /**
1858      *
1859      *
1860      * <pre>
1861      * Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
1862      * </pre>
1863      *
1864      * <code>repeated string metadata_fields = 378461641;</code>
1865      *
1866      * @param value The bytes of the metadataFields to add.
1867      * @return This builder for chaining.
1868      */
addMetadataFieldsBytes(com.google.protobuf.ByteString value)1869     public Builder addMetadataFieldsBytes(com.google.protobuf.ByteString value) {
1870       if (value == null) {
1871         throw new NullPointerException();
1872       }
1873       checkByteStringIsUtf8(value);
1874       ensureMetadataFieldsIsMutable();
1875       metadataFields_.add(value);
1876       onChanged();
1877       return this;
1878     }
1879 
1880     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1881     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1882       return super.setUnknownFields(unknownFields);
1883     }
1884 
1885     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1886     public final Builder mergeUnknownFields(
1887         final com.google.protobuf.UnknownFieldSet unknownFields) {
1888       return super.mergeUnknownFields(unknownFields);
1889     }
1890 
1891     // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.SubnetworkLogConfig)
1892   }
1893 
1894   // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.SubnetworkLogConfig)
1895   private static final com.google.cloud.compute.v1.SubnetworkLogConfig DEFAULT_INSTANCE;
1896 
1897   static {
1898     DEFAULT_INSTANCE = new com.google.cloud.compute.v1.SubnetworkLogConfig();
1899   }
1900 
getDefaultInstance()1901   public static com.google.cloud.compute.v1.SubnetworkLogConfig getDefaultInstance() {
1902     return DEFAULT_INSTANCE;
1903   }
1904 
1905   private static final com.google.protobuf.Parser<SubnetworkLogConfig> PARSER =
1906       new com.google.protobuf.AbstractParser<SubnetworkLogConfig>() {
1907         @java.lang.Override
1908         public SubnetworkLogConfig parsePartialFrom(
1909             com.google.protobuf.CodedInputStream input,
1910             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1911             throws com.google.protobuf.InvalidProtocolBufferException {
1912           Builder builder = newBuilder();
1913           try {
1914             builder.mergeFrom(input, extensionRegistry);
1915           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1916             throw e.setUnfinishedMessage(builder.buildPartial());
1917           } catch (com.google.protobuf.UninitializedMessageException e) {
1918             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1919           } catch (java.io.IOException e) {
1920             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1921                 .setUnfinishedMessage(builder.buildPartial());
1922           }
1923           return builder.buildPartial();
1924         }
1925       };
1926 
parser()1927   public static com.google.protobuf.Parser<SubnetworkLogConfig> parser() {
1928     return PARSER;
1929   }
1930 
1931   @java.lang.Override
getParserForType()1932   public com.google.protobuf.Parser<SubnetworkLogConfig> getParserForType() {
1933     return PARSER;
1934   }
1935 
1936   @java.lang.Override
getDefaultInstanceForType()1937   public com.google.cloud.compute.v1.SubnetworkLogConfig getDefaultInstanceForType() {
1938     return DEFAULT_INSTANCE;
1939   }
1940 }
1941