- 1.63.0 (latest)
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
public static final class SubnetworkLogConfig.Builder extends GeneratedMessageV3.Builder<SubnetworkLogConfig.Builder> implements SubnetworkLogConfigOrBuilder
The available logging options for this subnetwork.
Protobuf type google.cloud.compute.v1.SubnetworkLogConfig
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SubnetworkLogConfig.BuilderImplements
SubnetworkLogConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllMetadataFields(Iterable<String> values)
public SubnetworkLogConfig.Builder addAllMetadataFields(Iterable<String> values)
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;
Name | Description |
values | Iterable<String> The metadataFields to add. |
Type | Description |
SubnetworkLogConfig.Builder | This builder for chaining. |
addMetadataFields(String value)
public SubnetworkLogConfig.Builder addMetadataFields(String value)
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;
Name | Description |
value | String The metadataFields to add. |
Type | Description |
SubnetworkLogConfig.Builder | This builder for chaining. |
addMetadataFieldsBytes(ByteString value)
public SubnetworkLogConfig.Builder addMetadataFieldsBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes of the metadataFields to add. |
Type | Description |
SubnetworkLogConfig.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SubnetworkLogConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
SubnetworkLogConfig.Builder |
build()
public SubnetworkLogConfig build()
Type | Description |
SubnetworkLogConfig |
buildPartial()
public SubnetworkLogConfig buildPartial()
Type | Description |
SubnetworkLogConfig |
clear()
public SubnetworkLogConfig.Builder clear()
Type | Description |
SubnetworkLogConfig.Builder |
clearAggregationInterval()
public SubnetworkLogConfig.Builder clearAggregationInterval()
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;
Type | Description |
SubnetworkLogConfig.Builder | This builder for chaining. |
clearEnable()
public SubnetworkLogConfig.Builder clearEnable()
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;
Type | Description |
SubnetworkLogConfig.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public SubnetworkLogConfig.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
SubnetworkLogConfig.Builder |
clearFilterExpr()
public SubnetworkLogConfig.Builder clearFilterExpr()
Can only be specified if VPC flow logs for this subnetwork is enabled. Export filter used to define which VPC flow logs should be logged.
optional string filter_expr = 183374428;
Type | Description |
SubnetworkLogConfig.Builder | This builder for chaining. |
clearFlowSampling()
public SubnetworkLogConfig.Builder clearFlowSampling()
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;
Type | Description |
SubnetworkLogConfig.Builder | This builder for chaining. |
clearMetadata()
public SubnetworkLogConfig.Builder clearMetadata()
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;
Type | Description |
SubnetworkLogConfig.Builder | This builder for chaining. |
clearMetadataFields()
public SubnetworkLogConfig.Builder clearMetadataFields()
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;
Type | Description |
SubnetworkLogConfig.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public SubnetworkLogConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
SubnetworkLogConfig.Builder |
clone()
public SubnetworkLogConfig.Builder clone()
Type | Description |
SubnetworkLogConfig.Builder |
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;
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;
Type | Description |
ByteString | The bytes for aggregationInterval. |
getDefaultInstanceForType()
public SubnetworkLogConfig getDefaultInstanceForType()
Type | Description |
SubnetworkLogConfig |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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.
optional bool enable = 311764355;
Type | Description |
boolean | The enable. |
getFilterExpr()
public String getFilterExpr()
Can only be specified if VPC flow logs for this subnetwork is enabled. Export filter used to define which VPC flow logs should be logged.
optional string filter_expr = 183374428;
Type | Description |
String | The filterExpr. |
getFilterExprBytes()
public ByteString getFilterExprBytes()
Can only be specified if VPC flow logs for this subnetwork is enabled. Export filter used to define which VPC flow logs should be logged.
optional string filter_expr = 183374428;
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;
Type | Description |
float | The flowSampling. |
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;
Type | Description |
String | The metadata. |
getMetadataBytes()
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;
Type | Description |
ByteString | The bytes for metadata. |
getMetadataFields(int index)
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;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The metadataFields at the given index. |
getMetadataFieldsBytes(int 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;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the metadataFields at the given index. |
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;
Type | Description |
int | The count of metadataFields. |
getMetadataFieldsList()
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;
Type | Description |
ProtocolStringList | A list containing the metadataFields. |
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;
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.
optional bool enable = 311764355;
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. Export filter used to define which VPC flow logs should be logged.
optional string filter_expr = 183374428;
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;
Type | Description |
boolean | Whether the flowSampling field is set. |
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;
Type | Description |
boolean | Whether the metadata field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(SubnetworkLogConfig other)
public SubnetworkLogConfig.Builder mergeFrom(SubnetworkLogConfig other)
Name | Description |
other | SubnetworkLogConfig |
Type | Description |
SubnetworkLogConfig.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SubnetworkLogConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
SubnetworkLogConfig.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public SubnetworkLogConfig.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
SubnetworkLogConfig.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SubnetworkLogConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
SubnetworkLogConfig.Builder |
setAggregationInterval(String value)
public SubnetworkLogConfig.Builder setAggregationInterval(String value)
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;
Name | Description |
value | String The aggregationInterval to set. |
Type | Description |
SubnetworkLogConfig.Builder | This builder for chaining. |
setAggregationIntervalBytes(ByteString value)
public SubnetworkLogConfig.Builder setAggregationIntervalBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes for aggregationInterval to set. |
Type | Description |
SubnetworkLogConfig.Builder | This builder for chaining. |
setEnable(boolean value)
public SubnetworkLogConfig.Builder setEnable(boolean value)
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;
Name | Description |
value | boolean The enable to set. |
Type | Description |
SubnetworkLogConfig.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public SubnetworkLogConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
SubnetworkLogConfig.Builder |
setFilterExpr(String value)
public SubnetworkLogConfig.Builder setFilterExpr(String value)
Can only be specified if VPC flow logs for this subnetwork is enabled. Export filter used to define which VPC flow logs should be logged.
optional string filter_expr = 183374428;
Name | Description |
value | String The filterExpr to set. |
Type | Description |
SubnetworkLogConfig.Builder | This builder for chaining. |
setFilterExprBytes(ByteString value)
public SubnetworkLogConfig.Builder setFilterExprBytes(ByteString value)
Can only be specified if VPC flow logs for this subnetwork is enabled. Export filter used to define which VPC flow logs should be logged.
optional string filter_expr = 183374428;
Name | Description |
value | ByteString The bytes for filterExpr to set. |
Type | Description |
SubnetworkLogConfig.Builder | This builder for chaining. |
setFlowSampling(float value)
public SubnetworkLogConfig.Builder setFlowSampling(float value)
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;
Name | Description |
value | float The flowSampling to set. |
Type | Description |
SubnetworkLogConfig.Builder | This builder for chaining. |
setMetadata(String value)
public SubnetworkLogConfig.Builder setMetadata(String value)
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;
Name | Description |
value | String The metadata to set. |
Type | Description |
SubnetworkLogConfig.Builder | This builder for chaining. |
setMetadataBytes(ByteString value)
public SubnetworkLogConfig.Builder setMetadataBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes for metadata to set. |
Type | Description |
SubnetworkLogConfig.Builder | This builder for chaining. |
setMetadataFields(int index, String value)
public SubnetworkLogConfig.Builder setMetadataFields(int index, String value)
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;
Name | Description |
index | int The index to set the value at. |
value | String The metadataFields to set. |
Type | Description |
SubnetworkLogConfig.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SubnetworkLogConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
SubnetworkLogConfig.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final SubnetworkLogConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
SubnetworkLogConfig.Builder |