public final class RouterNatLogConfig extends GeneratedMessageV3 implements RouterNatLogConfigOrBuilder
Configuration of logging on a NAT.
Protobuf type google.cloud.compute.v1.RouterNatLogConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
ENABLE_FIELD_NUMBER
public static final int ENABLE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
FILTER_FIELD_NUMBER
public static final int FILTER_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static RouterNatLogConfig getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static RouterNatLogConfig.Builder newBuilder()
newBuilder(RouterNatLogConfig prototype)
public static RouterNatLogConfig.Builder newBuilder(RouterNatLogConfig prototype)
public static RouterNatLogConfig parseDelimitedFrom(InputStream input)
public static RouterNatLogConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static RouterNatLogConfig parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RouterNatLogConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static RouterNatLogConfig parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RouterNatLogConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RouterNatLogConfig parseFrom(CodedInputStream input)
public static RouterNatLogConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static RouterNatLogConfig parseFrom(InputStream input)
public static RouterNatLogConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static RouterNatLogConfig parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RouterNatLogConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<RouterNatLogConfig> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public RouterNatLogConfig getDefaultInstanceForType()
getEnable()
public boolean getEnable()
Indicates whether or not to export logs. This is false by default.
optional bool enable = 311764355;
Returns |
---|
Type | Description |
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 |
---|
Type | Description |
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 |
---|
Type | Description |
ByteString | The bytes for filter.
|
getParserForType()
public Parser<RouterNatLogConfig> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
hasEnable()
public boolean hasEnable()
Indicates whether or not to export logs. This is false by default.
optional bool enable = 311764355;
Returns |
---|
Type | Description |
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 |
---|
Type | Description |
boolean | Whether the filter field is set.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public RouterNatLogConfig.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected RouterNatLogConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public RouterNatLogConfig.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides