Class FirewallLogConfig.Builder (1.93.0)

public static final class FirewallLogConfig.Builder extends GeneratedMessage.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
Type Description
Descriptor

Methods

build()

public FirewallLogConfig build()
Returns
Type Description
FirewallLogConfig

buildPartial()

public FirewallLogConfig buildPartial()
Returns
Type Description
FirewallLogConfig

clear()

public FirewallLogConfig.Builder clear()
Returns
Type Description
FirewallLogConfig.Builder
Overrides

clearEnable()

public FirewallLogConfig.Builder clearEnable()

This field denotes whether to enable logging for a particular firewall rule.

optional bool enable = 311764355;

Returns
Type Description
FirewallLogConfig.Builder

This builder for chaining.

clearMetadata()

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
Type Description
FirewallLogConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public FirewallLogConfig getDefaultInstanceForType()
Returns
Type Description
FirewallLogConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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.

getMetadata()

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.

getMetadataBytes()

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.

hasMetadata()

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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FirewallLogConfig other)

public FirewallLogConfig.Builder mergeFrom(FirewallLogConfig other)
Parameter
Name Description
other FirewallLogConfig
Returns
Type Description
FirewallLogConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FirewallLogConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FirewallLogConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public FirewallLogConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
FirewallLogConfig.Builder
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
Type Description
FirewallLogConfig.Builder

This builder for chaining.

setMetadata(String value)

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
Type Description
FirewallLogConfig.Builder

This builder for chaining.

setMetadataBytes(ByteString value)

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
Type Description
FirewallLogConfig.Builder

This builder for chaining.