public final class SubnetworkLogConfig extends GeneratedMessageV3 implements SubnetworkLogConfigOrBuilder
The available logging options for this subnetwork.
Protobuf type google.cloud.compute.v1.SubnetworkLogConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
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 | |
public static final int METADATA_FIELDS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int METADATA_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static SubnetworkLogConfig getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static SubnetworkLogConfig.Builder newBuilder()
newBuilder(SubnetworkLogConfig prototype)
public static SubnetworkLogConfig.Builder newBuilder(SubnetworkLogConfig prototype)
public static SubnetworkLogConfig parseDelimitedFrom(InputStream input)
public static SubnetworkLogConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static SubnetworkLogConfig parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SubnetworkLogConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static SubnetworkLogConfig parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SubnetworkLogConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SubnetworkLogConfig parseFrom(CodedInputStream input)
public static SubnetworkLogConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SubnetworkLogConfig parseFrom(InputStream input)
public static SubnetworkLogConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static SubnetworkLogConfig parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SubnetworkLogConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<SubnetworkLogConfig> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
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;
Returns |
---|
Type | Description |
ByteString | The bytes for aggregationInterval.
|
getDefaultInstanceForType()
public SubnetworkLogConfig getDefaultInstanceForType()
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;
Returns |
---|
Type | Description |
boolean | The enable.
|
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;
Returns |
---|
Type | Description |
String | The filterExpr.
|
getFilterExprBytes()
public 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 |
---|
Type | Description |
ByteString | The bytes for filterExpr.
|
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;
Returns |
---|
Type | Description |
float | The flowSampling.
|
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;
Returns |
---|
Type | Description |
String | The metadata.
|
public 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 |
---|
Type | Description |
ByteString | The bytes for metadata.
|
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;
Parameter |
---|
Name | Description |
index | int
The index of the element to return.
|
Returns |
---|
Type | Description |
String | The metadataFields at the given index.
|
public 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;
Parameter |
---|
Name | Description |
index | int
The index of the value to return.
|
Returns |
---|
Type | Description |
ByteString | The bytes of the metadataFields at the given index.
|
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;
Returns |
---|
Type | Description |
int | The count of metadataFields.
|
public 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;
getParserForType()
public Parser<SubnetworkLogConfig> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
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;
Returns |
---|
Type | Description |
boolean | Whether the aggregationInterval field is set.
|
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;
Returns |
---|
Type | Description |
boolean | Whether the enable field is set.
|
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;
Returns |
---|
Type | Description |
boolean | Whether the filterExpr field is set.
|
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;
Returns |
---|
Type | Description |
boolean | Whether the flowSampling field is set.
|
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;
Returns |
---|
Type | Description |
boolean | Whether the metadata field is set.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public SubnetworkLogConfig.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SubnetworkLogConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public SubnetworkLogConfig.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides