Class SubnetworkLogConfig (1.88.0)

public final class SubnetworkLogConfig extends GeneratedMessageV3 implements SubnetworkLogConfigOrBuilder

The available logging options for this subnetwork.

Protobuf type google.cloud.compute.v1.SubnetworkLogConfig

Static Fields

AGGREGATION_INTERVAL_FIELD_NUMBER

public static final int AGGREGATION_INTERVAL_FIELD_NUMBER
Field Value
Type Description
int

ENABLE_FIELD_NUMBER

public static final int ENABLE_FIELD_NUMBER
Field Value
Type Description
int

FILTER_EXPR_FIELD_NUMBER

public static final int FILTER_EXPR_FIELD_NUMBER
Field Value
Type Description
int

FLOW_SAMPLING_FIELD_NUMBER

public static final int FLOW_SAMPLING_FIELD_NUMBER
Field Value
Type Description
int

METADATA_FIELDS_FIELD_NUMBER

public static final int METADATA_FIELDS_FIELD_NUMBER
Field Value
Type Description
int

METADATA_FIELD_NUMBER

public static final int METADATA_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SubnetworkLogConfig getDefaultInstance()
Returns
Type Description
SubnetworkLogConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static SubnetworkLogConfig.Builder newBuilder()
Returns
Type Description
SubnetworkLogConfig.Builder

newBuilder(SubnetworkLogConfig prototype)

public static SubnetworkLogConfig.Builder newBuilder(SubnetworkLogConfig prototype)
Parameter
Name Description
prototype SubnetworkLogConfig
Returns
Type Description
SubnetworkLogConfig.Builder

parseDelimitedFrom(InputStream input)

public static SubnetworkLogConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SubnetworkLogConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SubnetworkLogConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubnetworkLogConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SubnetworkLogConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SubnetworkLogConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SubnetworkLogConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubnetworkLogConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SubnetworkLogConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SubnetworkLogConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SubnetworkLogConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubnetworkLogConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SubnetworkLogConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SubnetworkLogConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SubnetworkLogConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubnetworkLogConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SubnetworkLogConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SubnetworkLogConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SubnetworkLogConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubnetworkLogConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SubnetworkLogConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SubnetworkLogConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SubnetworkLogConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubnetworkLogConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SubnetworkLogConfig> parser()
Returns
Type Description
Parser<SubnetworkLogConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAggregationInterval()

public String getAggregationInterval()

Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection. Check the AggregationInterval enum for the list of possible values.

optional string aggregation_interval = 174919042;

Returns
Type Description
String

The aggregationInterval.

getAggregationIntervalBytes()

public ByteString getAggregationIntervalBytes()

Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection. Check the AggregationInterval enum for the list of possible values.

optional string aggregation_interval = 174919042;<