Package com.google.cloud.compute.v1
Class SubnetworkLogConfig
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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
@Generated
public final class SubnetworkLogConfig
extends com.google.protobuf.GeneratedMessage
implements SubnetworkLogConfigOrBuilder
The available logging options for this subnetwork.Protobuf type
google.cloud.compute.v1.SubnetworkLogConfig- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumCan only be specified if VPC flow logging for this subnetwork is enabled.static final classThe available logging options for this subnetwork.static enumCan only be specified if VPC flow logs for this subnetwork is enabled.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanCan only be specified if VPC flow logging for this subnetwork is enabled.com.google.protobuf.ByteStringCan only be specified if VPC flow logging for this subnetwork is enabled.static SubnetworkLogConfigstatic final com.google.protobuf.Descriptors.DescriptorbooleanWhether to enable flow logging for this subnetwork.Can only be specified if VPC flow logs for this subnetwork is enabled.com.google.protobuf.ByteStringCan only be specified if VPC flow logs for this subnetwork is enabled.floatCan only be specified if VPC flow logging for this subnetwork is enabled.Can only be specified if VPC flow logs for this subnetwork is enabled.com.google.protobuf.ByteStringCan only be specified if VPC flow logs for this subnetwork is enabled.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.ByteStringgetMetadataFieldsBytes(int index) Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.intCan only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.com.google.protobuf.ProtocolStringListCan only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.com.google.protobuf.Parser<SubnetworkLogConfig>intbooleanCan only be specified if VPC flow logging for this subnetwork is enabled.booleanWhether to enable flow logging for this subnetwork.booleanCan only be specified if VPC flow logs for this subnetwork is enabled.booleanCan only be specified if VPC flow logging for this subnetwork is enabled.inthashCode()booleanCan only be specified if VPC flow logs for this subnetwork is enabled.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic SubnetworkLogConfig.Builderstatic SubnetworkLogConfig.BuildernewBuilder(SubnetworkLogConfig prototype) protected SubnetworkLogConfig.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) 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()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
AGGREGATION_INTERVAL_FIELD_NUMBER
public static final int AGGREGATION_INTERVAL_FIELD_NUMBER- See Also:
-
ENABLE_FIELD_NUMBER
public static final int ENABLE_FIELD_NUMBER- See Also:
-
FILTER_EXPR_FIELD_NUMBER
public static final int FILTER_EXPR_FIELD_NUMBER- See Also:
-
FLOW_SAMPLING_FIELD_NUMBER
public static final int FLOW_SAMPLING_FIELD_NUMBER- See Also:
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER- See Also:
-
METADATA_FIELDS_FIELD_NUMBER
public static final int METADATA_FIELDS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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
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
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 isEXCLUDE_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
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 isEXCLUDE_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 isEXCLUDE_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
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.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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
- Throws:
IOException
-
parseFrom
public static SubnetworkLogConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SubnetworkLogConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-