Package com.google.cloud.compute.v1
Class SubnetworkLogConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SubnetworkLogConfig.Builder>
-
- com.google.cloud.compute.v1.SubnetworkLogConfig.Builder
-
- All Implemented Interfaces:
SubnetworkLogConfigOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- SubnetworkLogConfig
public static final class SubnetworkLogConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SubnetworkLogConfig.Builder> implements SubnetworkLogConfigOrBuilder
The available logging options for this subnetwork.
Protobuf typegoogle.cloud.compute.v1.SubnetworkLogConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.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.SubnetworkLogConfig.Builder
addMetadataFieldsBytes(com.google.protobuf.ByteString value)
Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.SubnetworkLogConfig.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SubnetworkLogConfig
build()
SubnetworkLogConfig
buildPartial()
SubnetworkLogConfig.Builder
clear()
SubnetworkLogConfig.Builder
clearAggregationInterval()
Can only be specified if VPC flow logging for this subnetwork is enabled.SubnetworkLogConfig.Builder
clearEnable()
Whether to enable flow logging for this subnetwork.SubnetworkLogConfig.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
SubnetworkLogConfig.Builder
clearFilterExpr()
Can only be specified if VPC flow logs for this subnetwork is enabled.SubnetworkLogConfig.Builder
clearFlowSampling()
Can only be specified if VPC flow logging for this subnetwork is enabled.SubnetworkLogConfig.Builder
clearMetadata()
Can only be specified if VPC flow logs for this subnetwork is enabled.SubnetworkLogConfig.Builder
clearMetadataFields()
Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.SubnetworkLogConfig.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
SubnetworkLogConfig.Builder
clone()
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.SubnetworkLogConfig
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
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.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.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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
SubnetworkLogConfig.Builder
mergeFrom(SubnetworkLogConfig other)
SubnetworkLogConfig.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SubnetworkLogConfig.Builder
mergeFrom(com.google.protobuf.Message other)
SubnetworkLogConfig.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SubnetworkLogConfig.Builder
setAggregationInterval(String value)
Can only be specified if VPC flow logging for this subnetwork is enabled.SubnetworkLogConfig.Builder
setAggregationIntervalBytes(com.google.protobuf.ByteString value)
Can only be specified if VPC flow logging for this subnetwork is enabled.SubnetworkLogConfig.Builder
setEnable(boolean value)
Whether to enable flow logging for this subnetwork.SubnetworkLogConfig.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SubnetworkLogConfig.Builder
setFilterExpr(String value)
Can only be specified if VPC flow logs for this subnetwork is enabled.SubnetworkLogConfig.Builder
setFilterExprBytes(com.google.protobuf.ByteString value)
Can only be specified if VPC flow logs for this subnetwork is enabled.SubnetworkLogConfig.Builder
setFlowSampling(float value)
Can only be specified if VPC flow logging for this subnetwork is enabled.SubnetworkLogConfig.Builder
setMetadata(String value)
Can only be specified if VPC flow logs for this subnetwork is enabled.SubnetworkLogConfig.Builder
setMetadataBytes(com.google.protobuf.ByteString value)
Can only be specified if VPC flow logs for this subnetwork is enabled.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.SubnetworkLogConfig.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
SubnetworkLogConfig.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<SubnetworkLogConfig.Builder>
-
clear
public SubnetworkLogConfig.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<SubnetworkLogConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<SubnetworkLogConfig.Builder>
-
getDefaultInstanceForType
public SubnetworkLogConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SubnetworkLogConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SubnetworkLogConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SubnetworkLogConfig.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<SubnetworkLogConfig.Builder>
-
setField
public SubnetworkLogConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SubnetworkLogConfig.Builder>
-
clearField
public SubnetworkLogConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SubnetworkLogConfig.Builder>
-
clearOneof
public SubnetworkLogConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<SubnetworkLogConfig.Builder>
-
setRepeatedField
public SubnetworkLogConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SubnetworkLogConfig.Builder>
-
addRepeatedField
public SubnetworkLogConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SubnetworkLogConfig.Builder>
-
mergeFrom
public SubnetworkLogConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SubnetworkLogConfig.Builder>
-
mergeFrom
public SubnetworkLogConfig.Builder mergeFrom(SubnetworkLogConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<SubnetworkLogConfig.Builder>
-
mergeFrom
public SubnetworkLogConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SubnetworkLogConfig.Builder>
- Throws:
IOException
-
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:
hasAggregationInterval
in 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:
getAggregationInterval
in 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:
getAggregationIntervalBytes
in interfaceSubnetworkLogConfigOrBuilder
- Returns:
- The bytes for aggregationInterval.
-
setAggregationInterval
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;
- Parameters:
value
- The aggregationInterval to set.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
setAggregationIntervalBytes
public SubnetworkLogConfig.Builder setAggregationIntervalBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for aggregationInterval to set.- Returns:
- This builder for chaining.
-
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:
hasEnable
in 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:
getEnable
in interfaceSubnetworkLogConfigOrBuilder
- Returns:
- The enable.
-
setEnable
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. Flow logging isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
optional bool enable = 311764355;
- Parameters:
value
- The enable to set.- Returns:
- 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. Flow logging isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
optional bool enable = 311764355;
- Returns:
- This builder for chaining.
-
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:
hasFilterExpr
in 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:
getFilterExpr
in 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:
getFilterExprBytes
in interfaceSubnetworkLogConfigOrBuilder
- Returns:
- The bytes for filterExpr.
-
setFilterExpr
public SubnetworkLogConfig.Builder setFilterExpr(String value)
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;
- Parameters:
value
- The filterExpr to set.- Returns:
- This builder for chaining.
-
clearFilterExpr
public SubnetworkLogConfig.Builder clearFilterExpr()
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:
- This builder for chaining.
-
setFilterExprBytes
public SubnetworkLogConfig.Builder setFilterExprBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for filterExpr to set.- Returns:
- This builder for chaining.
-
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:
hasFlowSampling
in 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:
getFlowSampling
in interfaceSubnetworkLogConfigOrBuilder
- Returns:
- The flowSampling.
-
setFlowSampling
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;
- Parameters:
value
- The flowSampling to set.- Returns:
- 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;
- Returns:
- This builder for chaining.
-
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:
hasMetadata
in 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:
getMetadata
in 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:
getMetadataBytes
in interfaceSubnetworkLogConfigOrBuilder
- Returns:
- The bytes for metadata.
-
setMetadata
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;
- Parameters:
value
- The metadata to set.- Returns:
- 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;
- Returns:
- This builder for chaining.
-
setMetadataBytes
public SubnetworkLogConfig.Builder setMetadataBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for metadata to set.- Returns:
- This builder for chaining.
-
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:
getMetadataFieldsList
in 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:
getMetadataFieldsCount
in 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:
getMetadataFields
in 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:
getMetadataFieldsBytes
in interfaceSubnetworkLogConfigOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the metadataFields at the given index.
-
setMetadataFields
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;
- Parameters:
index
- The index to set the value at.value
- The metadataFields to set.- Returns:
- This builder for chaining.
-
addMetadataFields
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;
- Parameters:
value
- The metadataFields to add.- Returns:
- This builder for chaining.
-
addAllMetadataFields
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;
- Parameters:
values
- The metadataFields to add.- Returns:
- 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;
- Returns:
- This builder for chaining.
-
addMetadataFieldsBytes
public SubnetworkLogConfig.Builder addMetadataFieldsBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes of the metadataFields to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final SubnetworkLogConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SubnetworkLogConfig.Builder>
-
mergeUnknownFields
public final SubnetworkLogConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SubnetworkLogConfig.Builder>
-
-