Class FirewallLogConfig.Builder (1.51.0)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FirewallLogConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
FirewallLogConfig.Builder
Overrides

build()

public FirewallLogConfig build()
Returns
TypeDescription
FirewallLogConfig

buildPartial()

public FirewallLogConfig buildPartial()
Returns
TypeDescription
FirewallLogConfig

clear()

public FirewallLogConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
FirewallLogConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public FirewallLogConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
FirewallLogConfig.Builder
Overrides

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
TypeDescription
FirewallLogConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public FirewallLogConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
FirewallLogConfig.Builder
Overrides

clone()

public FirewallLogConfig.Builder clone()
Returns
TypeDescription
FirewallLogConfig.Builder
Overrides

getDefaultInstanceForType()

public FirewallLogConfig getDefaultInstanceForType()
Returns
TypeDescription
FirewallLogConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnable()

public boolean getEnable()

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

optional bool enable = 311764355;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the metadata field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(FirewallLogConfig other)

public FirewallLogConfig.Builder mergeFrom(FirewallLogConfig other)
Parameter
NameDescription
otherFirewallLogConfig
Returns
TypeDescription
FirewallLogConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FirewallLogConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FirewallLogConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public FirewallLogConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
FirewallLogConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FirewallLogConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The enable to set.

Returns
TypeDescription
FirewallLogConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public FirewallLogConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
FirewallLogConfig.Builder
Overrides

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
NameDescription
valueString

The metadata to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for metadata to set.

Returns
TypeDescription
FirewallLogConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public FirewallLogConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
FirewallLogConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final FirewallLogConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FirewallLogConfig.Builder
Overrides