Package com.google.cloud.compute.v1
Class SubnetworkLogConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.compute.v1.SubnetworkLogConfig
-
- All Implemented Interfaces:
SubnetworkLogConfigOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class SubnetworkLogConfig extends com.google.protobuf.GeneratedMessageV3 implements SubnetworkLogConfigOrBuilder
The available logging options for this subnetwork.
Protobuf typegoogle.cloud.compute.v1.SubnetworkLogConfig- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubnetworkLogConfig.AggregationIntervalCan only be specified if VPC flow logging for this subnetwork is enabled.static classSubnetworkLogConfig.BuilderThe available logging options for this subnetwork.static classSubnetworkLogConfig.MetadataCan only be specified if VPC flow logs for this subnetwork is enabled.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intAGGREGATION_INTERVAL_FIELD_NUMBERstatic intENABLE_FIELD_NUMBERstatic intFILTER_EXPR_FIELD_NUMBERstatic intFLOW_SAMPLING_FIELD_NUMBERstatic intMETADATA_FIELD_NUMBERstatic intMETADATA_FIELDS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetAggregationInterval()Can only be specified if VPC flow logging for this subnetwork is enabled.com.google.protobuf.ByteStringgetAggregationIntervalBytes()Can only be specified if VPC flow logging for this subnetwork is enabled.static SubnetworkLogConfiggetDefaultInstance()SubnetworkLogConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()booleangetEnable()Whether to enable flow logging for this subnetwork.StringgetFilterExpr()Can only be specified if VPC flow logs for this subnetwork is enabled.com.google.protobuf.ByteStringgetFilterExprBytes()Can only be specified if VPC flow logs for this subnetwork is enabled.floatgetFlowSampling()Can only be specified if VPC flow logging for this subnetwork is enabled.StringgetMetadata()Can only be specified if VPC flow logs for this subnetwork is enabled.com.google.protobuf.ByteStringgetMetadataBytes()Can only be specified if VPC flow logs for this subnetwork is enabled.StringgetMetadataFields(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.ByteStringgetMetadataFieldsBytes(int index)Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.intgetMetadataFieldsCount()Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.com.google.protobuf.ProtocolStringListgetMetadataFieldsList()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()intgetSerializedSize()booleanhasAggregationInterval()Can only be specified if VPC flow logging for this subnetwork is enabled.booleanhasEnable()Whether to enable flow logging for this subnetwork.booleanhasFilterExpr()Can only be specified if VPC flow logs for this subnetwork is enabled.booleanhasFlowSampling()Can only be specified if VPC flow logging for this subnetwork is enabled.inthashCode()booleanhasMetadata()Can only be specified if VPC flow logs for this subnetwork is enabled.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static SubnetworkLogConfig.BuildernewBuilder()static SubnetworkLogConfig.BuildernewBuilder(SubnetworkLogConfig prototype)SubnetworkLogConfig.BuildernewBuilderForType()protected SubnetworkLogConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static SubnetworkLogConfigparseDelimitedFrom(InputStream input)static SubnetworkLogConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SubnetworkLogConfigparseFrom(byte[] data)static SubnetworkLogConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SubnetworkLogConfigparseFrom(com.google.protobuf.ByteString data)static SubnetworkLogConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SubnetworkLogConfigparseFrom(com.google.protobuf.CodedInputStream input)static SubnetworkLogConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SubnetworkLogConfigparseFrom(InputStream input)static SubnetworkLogConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SubnetworkLogConfigparseFrom(ByteBuffer data)static SubnetworkLogConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<SubnetworkLogConfig>parser()SubnetworkLogConfig.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
AGGREGATION_INTERVAL_FIELD_NUMBER
public static final int AGGREGATION_INTERVAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENABLE_FIELD_NUMBER
public static final int ENABLE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FILTER_EXPR_FIELD_NUMBER
public static final int FILTER_EXPR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FLOW_SAMPLING_FIELD_NUMBER
public static final int FLOW_SAMPLING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METADATA_FIELDS_FIELD_NUMBER
public static final int METADATA_FIELDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasAggregationInterval
public 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;- Specified by:
hasAggregationIntervalin interfaceSubnetworkLogConfigOrBuilder- Returns:
- Whether the aggregationInterval field is set.
-
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;- Specified by:
getAggregationIntervalin interfaceSubnetworkLogConfigOrBuilder- Returns:
- The aggregationInterval.
-
getAggregationIntervalBytes
public 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;- Specified by:
getAggregationIntervalBytesin interfaceSubnetworkLogConfigOrBuilder- Returns:
- The bytes for aggregationInterval.
-
hasEnable
public 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. Flow logging isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
optional bool enable = 311764355;- Specified by:
hasEnablein interfaceSubnetworkLogConfigOrBuilder- Returns:
- Whether the enable field is set.
-
getEnable
public 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. Flow logging isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
optional bool enable = 311764355;- Specified by:
getEnablein interfaceSubnetworkLogConfigOrBuilder- Returns:
- The enable.
-
hasFilterExpr
public 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;- Specified by:
hasFilterExprin interfaceSubnetworkLogConfigOrBuilder- Returns:
- Whether the filterExpr field is set.
-
getFilterExpr
public 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;- Specified by:
getFilterExprin interfaceSubnetworkLogConfigOrBuilder- Returns:
- The filterExpr.
-
getFilterExprBytes
public 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;- Specified by:
getFilterExprBytesin interfaceSubnetworkLogConfigOrBuilder- Returns:
- The bytes for filterExpr.
-
hasFlowSampling
public 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;- Specified by:
hasFlowSamplingin interfaceSubnetworkLogConfigOrBuilder- Returns:
- Whether the flowSampling field is set.
-
getFlowSampling
public 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;- Specified by:
getFlowSamplingin interfaceSubnetworkLogConfigOrBuilder- Returns:
- The flowSampling.
-
hasMetadata
public 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;- Specified by:
hasMetadatain interfaceSubnetworkLogConfigOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
public 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;- Specified by:
getMetadatain interfaceSubnetworkLogConfigOrBuilder- Returns:
- The metadata.
-
getMetadataBytes
public 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;- Specified by:
getMetadataBytesin interfaceSubnetworkLogConfigOrBuilder- Returns:
- The bytes for metadata.
-
getMetadataFieldsList
public 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;- Specified by:
getMetadataFieldsListin interfaceSubnetworkLogConfigOrBuilder- Returns:
- A list containing the metadataFields.
-
getMetadataFieldsCount
public 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;- Specified by:
getMetadataFieldsCountin interfaceSubnetworkLogConfigOrBuilder- Returns:
- The count of metadataFields.
-
getMetadataFields
public 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;- Specified by:
getMetadataFieldsin interfaceSubnetworkLogConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The metadataFields at the given index.
-
getMetadataFieldsBytes
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;- Specified by:
getMetadataFieldsBytesin interfaceSubnetworkLogConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the metadataFields at the given index.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static SubnetworkLogConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SubnetworkLogConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SubnetworkLogConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SubnetworkLogConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SubnetworkLogConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SubnetworkLogConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SubnetworkLogConfig parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static SubnetworkLogConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static SubnetworkLogConfig parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static SubnetworkLogConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static SubnetworkLogConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static SubnetworkLogConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public SubnetworkLogConfig.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static SubnetworkLogConfig.Builder newBuilder()
-
newBuilder
public static SubnetworkLogConfig.Builder newBuilder(SubnetworkLogConfig prototype)
-
toBuilder
public SubnetworkLogConfig.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SubnetworkLogConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static SubnetworkLogConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<SubnetworkLogConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<SubnetworkLogConfig> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public SubnetworkLogConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-