Send feedback
Class FirewallLogConfig.Builder (1.27.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.27.0 keyboard_arrow_down
public static final class FirewallLogConfig . Builder extends GeneratedMessageV3 . Builder<FirewallLogConfig . Builder> implements FirewallLogConfigOrBuilder
The available logging options for a firewall rule.
Protobuf type google.cloud.compute.v1.FirewallLogConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public FirewallLogConfig . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public FirewallLogConfig build ()
buildPartial()
public FirewallLogConfig buildPartial ()
clear()
public FirewallLogConfig . Builder clear ()
Overrides
clearEnable()
public FirewallLogConfig . Builder clearEnable ()
This field denotes whether to enable logging for a particular firewall rule.
optional bool enable = 311764355;
clearField(Descriptors.FieldDescriptor field)
public FirewallLogConfig . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
public FirewallLogConfig . Builder clearMetadata ()
This field can only be specified for a particular firewall rule if logging is enabled for that rule. This field denotes whether to include or exclude metadata for firewall logs.
Check the Metadata enum for the list of possible values.
optional string metadata = 86866735;
clearOneof(Descriptors.OneofDescriptor oneof)
public FirewallLogConfig . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clone()
public FirewallLogConfig . Builder clone ()
Overrides
getDefaultInstanceForType()
public FirewallLogConfig getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getEnable()
public boolean getEnable ()
This field denotes whether to enable logging for a particular firewall rule.
optional bool enable = 311764355;
Returns Type Description boolean
The enable.
public String getMetadata ()
This field can only be specified for a particular firewall rule if logging is enabled for that rule. This field denotes whether to include or exclude metadata for firewall logs.
Check the Metadata enum for the list of possible values.
optional string metadata = 86866735;
Returns Type Description String
The metadata.
public ByteString getMetadataBytes ()
This field can only be specified for a particular firewall rule if logging is enabled for that rule. This field denotes whether to include or exclude metadata for firewall logs.
Check the Metadata enum for the list of possible values.
optional string metadata = 86866735;
Returns Type Description ByteString
The bytes for metadata.
hasEnable()
public boolean hasEnable ()
This field denotes whether to enable logging for a particular firewall rule.
optional bool enable = 311764355;
Returns Type Description boolean
Whether the enable field is set.
public boolean hasMetadata ()
This field can only be specified for a particular firewall rule if logging is enabled for that rule. This field denotes whether to include or exclude metadata for firewall logs.
Check the Metadata enum for the list of possible values.
optional string metadata = 86866735;
Returns Type Description boolean
Whether the metadata field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(FirewallLogConfig other)
public FirewallLogConfig . Builder mergeFrom ( FirewallLogConfig other )
public FirewallLogConfig . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public FirewallLogConfig . Builder mergeFrom ( Message other )
Parameter Name Description other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final FirewallLogConfig . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setEnable(boolean value)
public FirewallLogConfig . Builder setEnable ( boolean value )
This field denotes whether to enable logging for a particular firewall rule.
optional bool enable = 311764355;
Parameter Name Description value
boolean
The enable to set.
setField(Descriptors.FieldDescriptor field, Object value)
public FirewallLogConfig . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
public FirewallLogConfig . Builder setMetadata ( String value )
This field can only be specified for a particular firewall rule if logging is enabled for that rule. This field denotes whether to include or exclude metadata for firewall logs.
Check the Metadata enum for the list of possible values.
optional string metadata = 86866735;
Parameter Name Description value
String
The metadata to set.
public FirewallLogConfig . Builder setMetadataBytes ( ByteString value )
This field can only be specified for a particular firewall rule if logging is enabled for that rule. This field denotes whether to include or exclude metadata for firewall logs.
Check the Metadata enum for the list of possible values.
optional string metadata = 86866735;
Parameter Name Description value
ByteString
The bytes for metadata to set.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public FirewallLogConfig . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final FirewallLogConfig . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-04 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-10-04 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-04 UTC."]]