Class RouterNatLogConfig.Builder (1.46.0)

public static final class RouterNatLogConfig.Builder extends GeneratedMessageV3.Builder<RouterNatLogConfig.Builder> implements RouterNatLogConfigOrBuilder

Configuration of logging on a NAT.

Protobuf type google.cloud.compute.v1.RouterNatLogConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RouterNatLogConfig build()
Returns
TypeDescription
RouterNatLogConfig

buildPartial()

public RouterNatLogConfig buildPartial()
Returns
TypeDescription
RouterNatLogConfig

clear()

public RouterNatLogConfig.Builder clear()
Returns
TypeDescription
RouterNatLogConfig.Builder
Overrides

clearEnable()

public RouterNatLogConfig.Builder clearEnable()

Indicates whether or not to export logs. This is false by default.

optional bool enable = 311764355;

Returns
TypeDescription
RouterNatLogConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFilter()

public RouterNatLogConfig.Builder clearFilter()

Specify the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. This option can take one of the following values: - ERRORS_ONLY: Export logs only for connection failures. - TRANSLATIONS_ONLY: Export logs only for successful connections. - ALL: Export logs for all connections, successful and unsuccessful. Check the Filter enum for the list of possible values.

optional string filter = 336120696;

Returns
TypeDescription
RouterNatLogConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public RouterNatLogConfig getDefaultInstanceForType()
Returns
TypeDescription
RouterNatLogConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnable()

public boolean getEnable()

Indicates whether or not to export logs. This is false by default.

optional bool enable = 311764355;

Returns
TypeDescription
boolean

The enable.

getFilter()

public String getFilter()

Specify the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. This option can take one of the following values: - ERRORS_ONLY: Export logs only for connection failures. - TRANSLATIONS_ONLY: Export logs only for successful connections. - ALL: Export logs for all connections, successful and unsuccessful. Check the Filter enum for the list of possible values.

optional string filter = 336120696;

Returns
TypeDescription
String

The filter.

getFilterBytes()

public ByteString getFilterBytes()

Specify the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. This option can take one of the following values: - ERRORS_ONLY: Export logs only for connection failures. - TRANSLATIONS_ONLY: Export logs only for successful connections. - ALL: Export logs for all connections, successful and unsuccessful. Check the Filter enum for the list of possible values.

optional string filter = 336120696;

Returns
TypeDescription
ByteString

The bytes for filter.

hasEnable()

public boolean hasEnable()

Indicates whether or not to export logs. This is false by default.

optional bool enable = 311764355;

Returns
TypeDescription
boolean

Whether the enable field is set.

hasFilter()

public boolean hasFilter()

Specify the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. This option can take one of the following values: - ERRORS_ONLY: Export logs only for connection failures. - TRANSLATIONS_ONLY: Export logs only for successful connections. - ALL: Export logs for all connections, successful and unsuccessful. Check the Filter enum for the list of possible values.

optional string filter = 336120696;

Returns
TypeDescription
boolean

Whether the filter field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RouterNatLogConfig other)

public RouterNatLogConfig.Builder mergeFrom(RouterNatLogConfig other)
Parameter
NameDescription
otherRouterNatLogConfig
Returns
TypeDescription
RouterNatLogConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RouterNatLogConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RouterNatLogConfig.Builder
Overrides

setEnable(boolean value)

public RouterNatLogConfig.Builder setEnable(boolean value)

Indicates whether or not to export logs. This is false by default.

optional bool enable = 311764355;

Parameter
NameDescription
valueboolean

The enable to set.

Returns
TypeDescription
RouterNatLogConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFilter(String value)

public RouterNatLogConfig.Builder setFilter(String value)

Specify the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. This option can take one of the following values: - ERRORS_ONLY: Export logs only for connection failures. - TRANSLATIONS_ONLY: Export logs only for successful connections. - ALL: Export logs for all connections, successful and unsuccessful. Check the Filter enum for the list of possible values.

optional string filter = 336120696;

Parameter
NameDescription
valueString

The filter to set.

Returns
TypeDescription
RouterNatLogConfig.Builder

This builder for chaining.

setFilterBytes(ByteString value)

public RouterNatLogConfig.Builder setFilterBytes(ByteString value)

Specify the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. This option can take one of the following values: - ERRORS_ONLY: Export logs only for connection failures. - TRANSLATIONS_ONLY: Export logs only for successful connections. - ALL: Export logs for all connections, successful and unsuccessful. Check the Filter enum for the list of possible values.

optional string filter = 336120696;

Parameter
NameDescription
valueByteString

The bytes for filter to set.

Returns
TypeDescription
RouterNatLogConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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