public final class SubnetworkLogConfig extends com.google.protobuf.GeneratedMessageV3 implements SubnetworkLogConfigOrBuilder
The available logging options for this subnetwork.Protobuf type
google.cloud.compute.v1.SubnetworkLogConfig| Modifier and Type | Class and Description |
|---|---|
static class |
SubnetworkLogConfig.AggregationInterval
Can only be specified if VPC flow logging for this subnetwork is enabled.
|
static class |
SubnetworkLogConfig.Builder
The available logging options for this subnetwork.
|
static class |
SubnetworkLogConfig.Metadata
Can only be specified if VPC flow logs for this subnetwork is enabled.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
AGGREGATION_INTERVAL_FIELD_NUMBER |
static int |
ENABLE_FIELD_NUMBER |
static int |
FILTER_EXPR_FIELD_NUMBER |
static int |
FLOW_SAMPLING_FIELD_NUMBER |
static int |
METADATA_FIELD_NUMBER |
static int |
METADATA_FIELDS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAggregationInterval()
Can only be specified if VPC flow logging for this subnetwork is enabled.
|
com.google.protobuf.ByteString |
getAggregationIntervalBytes()
Can only be specified if VPC flow logging for this subnetwork is enabled.
|
static SubnetworkLogConfig |
getDefaultInstance() |
SubnetworkLogConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getEnable()
Whether to enable flow logging for this subnetwork.
|
String |
getFilterExpr()
Can only be specified if VPC flow logs for this subnetwork is enabled.
|
com.google.protobuf.ByteString |
getFilterExprBytes()
Can only be specified if VPC flow logs for this subnetwork is enabled.
|
float |
getFlowSampling()
Can only be specified if VPC flow logging for this subnetwork is enabled.
|
String |
getMetadata()
Can only be specified if VPC flow logs for this subnetwork is enabled.
|
com.google.protobuf.ByteString |
getMetadataBytes()
Can only be specified if VPC flow logs for this subnetwork is enabled.
|
String |
getMetadataFields(int index)
Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
|
com.google.protobuf.ByteString |
getMetadataFieldsBytes(int index)
Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
|
int |
getMetadataFieldsCount()
Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
|
com.google.protobuf.ProtocolStringList |
getMetadataFieldsList()
Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
|
com.google.protobuf.Parser<SubnetworkLogConfig> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasAggregationInterval()
Can only be specified if VPC flow logging for this subnetwork is enabled.
|
boolean |
hasEnable()
Whether to enable flow logging for this subnetwork.
|
boolean |
hasFilterExpr()
Can only be specified if VPC flow logs for this subnetwork is enabled.
|
boolean |
hasFlowSampling()
Can only be specified if VPC flow logging for this subnetwork is enabled.
|
int |
hashCode() |
boolean |
hasMetadata()
Can only be specified if VPC flow logs for this subnetwork is enabled.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static SubnetworkLogConfig.Builder |
newBuilder() |
static SubnetworkLogConfig.Builder |
newBuilder(SubnetworkLogConfig prototype) |
SubnetworkLogConfig.Builder |
newBuilderForType() |
protected SubnetworkLogConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static SubnetworkLogConfig |
parseDelimitedFrom(InputStream input) |
static SubnetworkLogConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SubnetworkLogConfig |
parseFrom(byte[] data) |
static SubnetworkLogConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SubnetworkLogConfig |
parseFrom(ByteBuffer data) |
static SubnetworkLogConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SubnetworkLogConfig |
parseFrom(com.google.protobuf.ByteString data) |
static SubnetworkLogConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SubnetworkLogConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static SubnetworkLogConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SubnetworkLogConfig |
parseFrom(InputStream input) |
static SubnetworkLogConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<SubnetworkLogConfig> |
parser() |
SubnetworkLogConfig.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int AGGREGATION_INTERVAL_FIELD_NUMBER
public static final int ENABLE_FIELD_NUMBER
public static final int FILTER_EXPR_FIELD_NUMBER
public static final int FLOW_SAMPLING_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
public static final int METADATA_FIELDS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasAggregationInterval()
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;hasAggregationInterval in interface SubnetworkLogConfigOrBuilderpublic 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;getAggregationInterval in interface SubnetworkLogConfigOrBuilderpublic com.google.protobuf.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;getAggregationIntervalBytes in interface SubnetworkLogConfigOrBuilderpublic boolean hasEnable()
Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled.
optional bool enable = 311764355;hasEnable in interface SubnetworkLogConfigOrBuilderpublic boolean getEnable()
Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled.
optional bool enable = 311764355;getEnable in interface SubnetworkLogConfigOrBuilderpublic boolean hasFilterExpr()
Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is used to define which VPC flow logs should be exported to Cloud Logging.
optional string filter_expr = 183374428;hasFilterExpr in interface SubnetworkLogConfigOrBuilderpublic String getFilterExpr()
Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is used to define which VPC flow logs should be exported to Cloud Logging.
optional string filter_expr = 183374428;getFilterExpr in interface SubnetworkLogConfigOrBuilderpublic com.google.protobuf.ByteString getFilterExprBytes()
Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is used to define which VPC flow logs should be exported to Cloud Logging.
optional string filter_expr = 183374428;getFilterExprBytes in interface SubnetworkLogConfigOrBuilderpublic boolean hasFlowSampling()
Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.
optional float flow_sampling = 530150360;hasFlowSampling in interface SubnetworkLogConfigOrBuilderpublic float getFlowSampling()
Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.
optional float flow_sampling = 530150360;getFlowSampling in interface SubnetworkLogConfigOrBuilderpublic boolean hasMetadata()
Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA. Check the Metadata enum for the list of possible values.
optional string metadata = 86866735;hasMetadata in interface SubnetworkLogConfigOrBuilderpublic String getMetadata()
Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA. Check the Metadata enum for the list of possible values.
optional string metadata = 86866735;getMetadata in interface SubnetworkLogConfigOrBuilderpublic com.google.protobuf.ByteString getMetadataBytes()
Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA. Check the Metadata enum for the list of possible values.
optional string metadata = 86866735;getMetadataBytes in interface SubnetworkLogConfigOrBuilderpublic com.google.protobuf.ProtocolStringList getMetadataFieldsList()
Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
repeated string metadata_fields = 378461641;getMetadataFieldsList in interface SubnetworkLogConfigOrBuilderpublic int getMetadataFieldsCount()
Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
repeated string metadata_fields = 378461641;getMetadataFieldsCount in interface SubnetworkLogConfigOrBuilderpublic String getMetadataFields(int index)
Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
repeated string metadata_fields = 378461641;getMetadataFields in interface SubnetworkLogConfigOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getMetadataFieldsBytes(int index)
Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
repeated string metadata_fields = 378461641;getMetadataFieldsBytes in interface SubnetworkLogConfigOrBuilderindex - The index of the value to return.public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static SubnetworkLogConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SubnetworkLogConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SubnetworkLogConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SubnetworkLogConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SubnetworkLogConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SubnetworkLogConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SubnetworkLogConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static SubnetworkLogConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SubnetworkLogConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static SubnetworkLogConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SubnetworkLogConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static SubnetworkLogConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic SubnetworkLogConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SubnetworkLogConfig.Builder newBuilder()
public static SubnetworkLogConfig.Builder newBuilder(SubnetworkLogConfig prototype)
public SubnetworkLogConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SubnetworkLogConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SubnetworkLogConfig getDefaultInstance()
public static com.google.protobuf.Parser<SubnetworkLogConfig> parser()
public com.google.protobuf.Parser<SubnetworkLogConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SubnetworkLogConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.