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
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public FirewallLogConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public FirewallLogConfig build()
Returns
buildPartial()
public FirewallLogConfig buildPartial()
Returns
clear()
public FirewallLogConfig.Builder clear()
Returns
Overrides
clearEnable()
public FirewallLogConfig.Builder clearEnable()
This field denotes whether to enable logging for a particular firewall rule.
optional bool enable = 311764355;
Returns
clearField(Descriptors.FieldDescriptor field)
public FirewallLogConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public FirewallLogConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public FirewallLogConfig.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public FirewallLogConfig getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getEnable()
public boolean getEnable()
This field denotes whether to enable logging for a particular firewall rule.
optional bool enable = 311764355;
Returns
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
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()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(FirewallLogConfig other)
public FirewallLogConfig.Builder mergeFrom(FirewallLogConfig other)
Parameter
Returns
public FirewallLogConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public FirewallLogConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final FirewallLogConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public FirewallLogConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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.
|
Returns
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.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public FirewallLogConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final FirewallLogConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides