Package com.google.cloud.compute.v1
Interface SubnetworkLogConfigOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SubnetworkLogConfig
,SubnetworkLogConfig.Builder
public interface SubnetworkLogConfigOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.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.List<String>
getMetadataFieldsList()
Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.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.boolean
hasMetadata()
Can only be specified if VPC flow logs for this subnetwork is enabled.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasAggregationInterval
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;
- Returns:
- Whether the aggregationInterval field is set.
-
getAggregationInterval
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:
- The aggregationInterval.
-
getAggregationIntervalBytes
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;
- Returns:
- The bytes for aggregationInterval.
-
hasEnable
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;
- Returns:
- Whether the enable field is set.
-
getEnable
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;
- Returns:
- The enable.
-
hasFilterExpr
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;
- Returns:
- Whether the filterExpr field is set.
-
getFilterExpr
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;
- Returns:
- The filterExpr.
-
getFilterExprBytes
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;
- Returns:
- The bytes for filterExpr.
-
hasFlowSampling
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;
- Returns:
- Whether the flowSampling field is set.
-
getFlowSampling
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;
- Returns:
- The flowSampling.
-
hasMetadata
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;
- Returns:
- Whether the metadata field is set.
-
getMetadata
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;
- Returns:
- The metadata.
-
getMetadataBytes
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;
- Returns:
- The bytes for metadata.
-
getMetadataFieldsList
List<String> 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;
- Returns:
- A list containing the metadataFields.
-
getMetadataFieldsCount
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;
- Returns:
- The count of metadataFields.
-
getMetadataFields
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;
- Parameters:
index
- The index of the element to return.- Returns:
- The metadataFields at the given index.
-
getMetadataFieldsBytes
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;
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the metadataFields at the given index.
-
-