Class EffectiveVpcFlowLogsConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<EffectiveVpcFlowLogsConfig.Builder>
com.google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Builder
- All Implemented Interfaces:
EffectiveVpcFlowLogsConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- EffectiveVpcFlowLogsConfig
public static final class EffectiveVpcFlowLogsConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<EffectiveVpcFlowLogsConfig.Builder>
implements EffectiveVpcFlowLogsConfigOrBuilder
A configuration to generate a response for GetEffectiveVpcFlowLogsConfig request.Protobuf type
google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig-
Method Summary
Modifier and TypeMethodDescriptionaddAllMetadataFields(Iterable<String> values) Custom metadata fields to include in the reported VPC flow logs.addMetadataFields(String value) Custom metadata fields to include in the reported VPC flow logs.addMetadataFieldsBytes(com.google.protobuf.ByteString value) Custom metadata fields to include in the reported VPC flow logs.build()clear()The aggregation interval for the logs.Determines whether to include cross project annotations in the logs.Export filter used to define which VPC Flow Logs should be logged.The value of the field must be in (0, 1].Traffic will be logged from the Interconnect Attachment.Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs.Custom metadata fields to include in the reported VPC flow logs.Unique name of the configuration.Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network.Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).The state of the VPC Flow Log configuration.Traffic will be logged from VMs within the subnetwork.Traffic will be logged from the VPN Tunnel.The aggregation interval for the logs.intThe aggregation interval for the logs.Determines whether to include cross project annotations in the logs.intDetermines whether to include cross project annotations in the logs.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorExport filter used to define which VPC Flow Logs should be logged.com.google.protobuf.ByteStringExport filter used to define which VPC Flow Logs should be logged.floatThe value of the field must be in (0, 1].Traffic will be logged from the Interconnect Attachment.com.google.protobuf.ByteStringTraffic will be logged from the Interconnect Attachment.Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs.getMetadataFields(int index) Custom metadata fields to include in the reported VPC flow logs.com.google.protobuf.ByteStringgetMetadataFieldsBytes(int index) Custom metadata fields to include in the reported VPC flow logs.intCustom metadata fields to include in the reported VPC flow logs.com.google.protobuf.ProtocolStringListCustom metadata fields to include in the reported VPC flow logs.intConfigures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs.getName()Unique name of the configuration.com.google.protobuf.ByteStringUnique name of the configuration.Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network.com.google.protobuf.ByteStringTraffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network.getScope()Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).intSpecifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).getState()The state of the VPC Flow Log configuration.intThe state of the VPC Flow Log configuration.Traffic will be logged from VMs within the subnetwork.com.google.protobuf.ByteStringTraffic will be logged from VMs within the subnetwork.Traffic will be logged from the VPN Tunnel.com.google.protobuf.ByteStringTraffic will be logged from the VPN Tunnel.booleanThe aggregation interval for the logs.booleanDetermines whether to include cross project annotations in the logs.booleanExport filter used to define which VPC Flow Logs should be logged.booleanThe value of the field must be in (0, 1].booleanTraffic will be logged from the Interconnect Attachment.booleanConfigures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs.booleanTraffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network.booleanhasScope()Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).booleanhasState()The state of the VPC Flow Log configuration.booleanTraffic will be logged from VMs within the subnetwork.booleanTraffic will be logged from the VPN Tunnel.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The aggregation interval for the logs.setAggregationIntervalValue(int value) The aggregation interval for the logs.Determines whether to include cross project annotations in the logs.setCrossProjectMetadataValue(int value) Determines whether to include cross project annotations in the logs.setFilterExpr(String value) Export filter used to define which VPC Flow Logs should be logged.setFilterExprBytes(com.google.protobuf.ByteString value) Export filter used to define which VPC Flow Logs should be logged.setFlowSampling(float value) The value of the field must be in (0, 1].setInterconnectAttachment(String value) Traffic will be logged from the Interconnect Attachment.setInterconnectAttachmentBytes(com.google.protobuf.ByteString value) Traffic will be logged from the Interconnect Attachment.Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs.setMetadataFields(int index, String value) Custom metadata fields to include in the reported VPC flow logs.setMetadataValue(int value) Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs.Unique name of the configuration.setNameBytes(com.google.protobuf.ByteString value) Unique name of the configuration.setNetwork(String value) Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network.setNetworkBytes(com.google.protobuf.ByteString value) Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network.Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).setScopeValue(int value) Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).setState(VpcFlowLogsConfig.State value) The state of the VPC Flow Log configuration.setStateValue(int value) The state of the VPC Flow Log configuration.Traffic will be logged from VMs within the subnetwork.setSubnetBytes(com.google.protobuf.ByteString value) Traffic will be logged from VMs within the subnetwork.setVpnTunnel(String value) Traffic will be logged from the VPN Tunnel.setVpnTunnelBytes(com.google.protobuf.ByteString value) Traffic will be logged from the VPN Tunnel.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<EffectiveVpcFlowLogsConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<EffectiveVpcFlowLogsConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<EffectiveVpcFlowLogsConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EffectiveVpcFlowLogsConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<EffectiveVpcFlowLogsConfig.Builder>
-
mergeFrom
public EffectiveVpcFlowLogsConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EffectiveVpcFlowLogsConfig.Builder>- Throws:
IOException
-
getTargetResourceCase
- Specified by:
getTargetResourceCasein interfaceEffectiveVpcFlowLogsConfigOrBuilder
-
clearTargetResource
-
getName
Unique name of the configuration. The name can have one of the following forms: - For project-level configurations: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For organization-level configurations: `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For a Compute config, the name will be the path of the subnet: `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}`string name = 1;- Specified by:
getNamein interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Unique name of the configuration. The name can have one of the following forms: - For project-level configurations: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For organization-level configurations: `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For a Compute config, the name will be the path of the subnet: `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}`string name = 1;- Specified by:
getNameBytesin interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- The bytes for name.
-
setName
Unique name of the configuration. The name can have one of the following forms: - For project-level configurations: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For organization-level configurations: `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For a Compute config, the name will be the path of the subnet: `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}`string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Unique name of the configuration. The name can have one of the following forms: - For project-level configurations: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For organization-level configurations: `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For a Compute config, the name will be the path of the subnet: `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}`string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
Unique name of the configuration. The name can have one of the following forms: - For project-level configurations: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For organization-level configurations: `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For a Compute config, the name will be the path of the subnet: `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}`string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasState
public boolean hasState()The state of the VPC Flow Log configuration. Default value is ENABLED. When creating a new configuration, it must be enabled. Setting state=DISABLED will pause the log generation for this config.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3;- Specified by:
hasStatein interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- Whether the state field is set.
-
getStateValue
public int getStateValue()The state of the VPC Flow Log configuration. Default value is ENABLED. When creating a new configuration, it must be enabled. Setting state=DISABLED will pause the log generation for this config.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3;- Specified by:
getStateValuein interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
The state of the VPC Flow Log configuration. Default value is ENABLED. When creating a new configuration, it must be enabled. Setting state=DISABLED will pause the log generation for this config.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3;- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
The state of the VPC Flow Log configuration. Default value is ENABLED. When creating a new configuration, it must be enabled. Setting state=DISABLED will pause the log generation for this config.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3;- Specified by:
getStatein interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- The state.
-
setState
The state of the VPC Flow Log configuration. Default value is ENABLED. When creating a new configuration, it must be enabled. Setting state=DISABLED will pause the log generation for this config.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3;- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
The state of the VPC Flow Log configuration. Default value is ENABLED. When creating a new configuration, it must be enabled. Setting state=DISABLED will pause the log generation for this config.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3;- Returns:
- This builder for chaining.
-
hasAggregationInterval
public boolean hasAggregationInterval()The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4;- Specified by:
hasAggregationIntervalin interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- Whether the aggregationInterval field is set.
-
getAggregationIntervalValue
public int getAggregationIntervalValue()The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4;- Specified by:
getAggregationIntervalValuein interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- The enum numeric value on the wire for aggregationInterval.
-
setAggregationIntervalValue
The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4;- Parameters:
value- The enum numeric value on the wire for aggregationInterval to set.- Returns:
- This builder for chaining.
-
getAggregationInterval
The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4;- Specified by:
getAggregationIntervalin interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- The aggregationInterval.
-
setAggregationInterval
public EffectiveVpcFlowLogsConfig.Builder setAggregationInterval(VpcFlowLogsConfig.AggregationInterval value) The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4;- Parameters:
value- The aggregationInterval to set.- Returns:
- This builder for chaining.
-
clearAggregationInterval
The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4;- Returns:
- This builder for chaining.
-
hasFlowSampling
public boolean hasFlowSampling()The value of the field must be in (0, 1]. The sampling rate of VPC Flow Logs where 1.0 means all collected logs are reported. Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, use the state field instead. Default value is 1.0.
optional float flow_sampling = 5;- Specified by:
hasFlowSamplingin interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- Whether the flowSampling field is set.
-
getFlowSampling
public float getFlowSampling()The value of the field must be in (0, 1]. The sampling rate of VPC Flow Logs where 1.0 means all collected logs are reported. Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, use the state field instead. Default value is 1.0.
optional float flow_sampling = 5;- Specified by:
getFlowSamplingin interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- The flowSampling.
-
setFlowSampling
The value of the field must be in (0, 1]. The sampling rate of VPC Flow Logs where 1.0 means all collected logs are reported. Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, use the state field instead. Default value is 1.0.
optional float flow_sampling = 5;- Parameters:
value- The flowSampling to set.- Returns:
- This builder for chaining.
-
clearFlowSampling
The value of the field must be in (0, 1]. The sampling rate of VPC Flow Logs where 1.0 means all collected logs are reported. Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, use the state field instead. Default value is 1.0.
optional float flow_sampling = 5;- Returns:
- This builder for chaining.
-
hasMetadata
public boolean hasMetadata()Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6;- Specified by:
hasMetadatain interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadataValue
public int getMetadataValue()Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6;- Specified by:
getMetadataValuein interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- The enum numeric value on the wire for metadata.
-
setMetadataValue
Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6;- Parameters:
value- The enum numeric value on the wire for metadata to set.- Returns:
- This builder for chaining.
-
getMetadata
Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6;- Specified by:
getMetadatain interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- The metadata.
-
setMetadata
Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6;- Parameters:
value- The metadata to set.- Returns:
- This builder for chaining.
-
clearMetadata
Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6;- Returns:
- This builder for chaining.
-
getMetadataFieldsList
public com.google.protobuf.ProtocolStringList getMetadataFieldsList()Custom metadata fields to include in the reported VPC flow logs. Can only be specified if "metadata" was set to CUSTOM_METADATA.
repeated string metadata_fields = 7;- Specified by:
getMetadataFieldsListin interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- A list containing the metadataFields.
-
getMetadataFieldsCount
public int getMetadataFieldsCount()Custom metadata fields to include in the reported VPC flow logs. Can only be specified if "metadata" was set to CUSTOM_METADATA.
repeated string metadata_fields = 7;- Specified by:
getMetadataFieldsCountin interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- The count of metadataFields.
-
getMetadataFields
Custom metadata fields to include in the reported VPC flow logs. Can only be specified if "metadata" was set to CUSTOM_METADATA.
repeated string metadata_fields = 7;- Specified by:
getMetadataFieldsin interfaceEffectiveVpcFlowLogsConfigOrBuilder- 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) Custom metadata fields to include in the reported VPC flow logs. Can only be specified if "metadata" was set to CUSTOM_METADATA.
repeated string metadata_fields = 7;- Specified by:
getMetadataFieldsBytesin interfaceEffectiveVpcFlowLogsConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the metadataFields at the given index.
-
setMetadataFields
Custom metadata fields to include in the reported VPC flow logs. Can only be specified if "metadata" was set to CUSTOM_METADATA.
repeated string metadata_fields = 7;- Parameters:
index- The index to set the value at.value- The metadataFields to set.- Returns:
- This builder for chaining.
-
addMetadataFields
Custom metadata fields to include in the reported VPC flow logs. Can only be specified if "metadata" was set to CUSTOM_METADATA.
repeated string metadata_fields = 7;- Parameters:
value- The metadataFields to add.- Returns:
- This builder for chaining.
-
addAllMetadataFields
Custom metadata fields to include in the reported VPC flow logs. Can only be specified if "metadata" was set to CUSTOM_METADATA.
repeated string metadata_fields = 7;- Parameters:
values- The metadataFields to add.- Returns:
- This builder for chaining.
-
clearMetadataFields
Custom metadata fields to include in the reported VPC flow logs. Can only be specified if "metadata" was set to CUSTOM_METADATA.
repeated string metadata_fields = 7;- Returns:
- This builder for chaining.
-
addMetadataFieldsBytes
public EffectiveVpcFlowLogsConfig.Builder addMetadataFieldsBytes(com.google.protobuf.ByteString value) Custom metadata fields to include in the reported VPC flow logs. Can only be specified if "metadata" was set to CUSTOM_METADATA.
repeated string metadata_fields = 7;- Parameters:
value- The bytes of the metadataFields to add.- Returns:
- This builder for chaining.
-
hasFilterExpr
public boolean hasFilterExpr()Export filter used to define which VPC Flow Logs should be logged.
optional string filter_expr = 8;- Specified by:
hasFilterExprin interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- Whether the filterExpr field is set.
-
getFilterExpr
Export filter used to define which VPC Flow Logs should be logged.
optional string filter_expr = 8;- Specified by:
getFilterExprin interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- The filterExpr.
-
getFilterExprBytes
public com.google.protobuf.ByteString getFilterExprBytes()Export filter used to define which VPC Flow Logs should be logged.
optional string filter_expr = 8;- Specified by:
getFilterExprBytesin interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- The bytes for filterExpr.
-
setFilterExpr
Export filter used to define which VPC Flow Logs should be logged.
optional string filter_expr = 8;- Parameters:
value- The filterExpr to set.- Returns:
- This builder for chaining.
-
clearFilterExpr
Export filter used to define which VPC Flow Logs should be logged.
optional string filter_expr = 8;- Returns:
- This builder for chaining.
-
setFilterExprBytes
Export filter used to define which VPC Flow Logs should be logged.
optional string filter_expr = 8;- Parameters:
value- The bytes for filterExpr to set.- Returns:
- This builder for chaining.
-
hasCrossProjectMetadata
public boolean hasCrossProjectMetadata()Determines whether to include cross project annotations in the logs. This field is available only for organization configurations. If not specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13;- Specified by:
hasCrossProjectMetadatain interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- Whether the crossProjectMetadata field is set.
-
getCrossProjectMetadataValue
public int getCrossProjectMetadataValue()Determines whether to include cross project annotations in the logs. This field is available only for organization configurations. If not specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13;- Specified by:
getCrossProjectMetadataValuein interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- The enum numeric value on the wire for crossProjectMetadata.
-
setCrossProjectMetadataValue
Determines whether to include cross project annotations in the logs. This field is available only for organization configurations. If not specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13;- Parameters:
value- The enum numeric value on the wire for crossProjectMetadata to set.- Returns:
- This builder for chaining.
-
getCrossProjectMetadata
Determines whether to include cross project annotations in the logs. This field is available only for organization configurations. If not specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13;- Specified by:
getCrossProjectMetadatain interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- The crossProjectMetadata.
-
setCrossProjectMetadata
public EffectiveVpcFlowLogsConfig.Builder setCrossProjectMetadata(VpcFlowLogsConfig.CrossProjectMetadata value) Determines whether to include cross project annotations in the logs. This field is available only for organization configurations. If not specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13;- Parameters:
value- The crossProjectMetadata to set.- Returns:
- This builder for chaining.
-
clearCrossProjectMetadata
Determines whether to include cross project annotations in the logs. This field is available only for organization configurations. If not specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13;- Returns:
- This builder for chaining.
-
hasNetwork
public boolean hasNetwork()Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network. Format: projects/{project_id}/global/networks/{name}string network = 100;- Specified by:
hasNetworkin interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- Whether the network field is set.
-
getNetwork
Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network. Format: projects/{project_id}/global/networks/{name}string network = 100;- Specified by:
getNetworkin interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- The network.
-
getNetworkBytes
public com.google.protobuf.ByteString getNetworkBytes()Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network. Format: projects/{project_id}/global/networks/{name}string network = 100;- Specified by:
getNetworkBytesin interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- The bytes for network.
-
setNetwork
Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network. Format: projects/{project_id}/global/networks/{name}string network = 100;- Parameters:
value- The network to set.- Returns:
- This builder for chaining.
-
clearNetwork
Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network. Format: projects/{project_id}/global/networks/{name}string network = 100;- Returns:
- This builder for chaining.
-
setNetworkBytes
Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network. Format: projects/{project_id}/global/networks/{name}string network = 100;- Parameters:
value- The bytes for network to set.- Returns:
- This builder for chaining.
-
hasSubnet
public boolean hasSubnet()Traffic will be logged from VMs within the subnetwork. Format: projects/{project_id}/regions/{region}/subnetworks/{name}string subnet = 101;- Specified by:
hasSubnetin interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- Whether the subnet field is set.
-
getSubnet
Traffic will be logged from VMs within the subnetwork. Format: projects/{project_id}/regions/{region}/subnetworks/{name}string subnet = 101;- Specified by:
getSubnetin interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- The subnet.
-
getSubnetBytes
public com.google.protobuf.ByteString getSubnetBytes()Traffic will be logged from VMs within the subnetwork. Format: projects/{project_id}/regions/{region}/subnetworks/{name}string subnet = 101;- Specified by:
getSubnetBytesin interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- The bytes for subnet.
-
setSubnet
Traffic will be logged from VMs within the subnetwork. Format: projects/{project_id}/regions/{region}/subnetworks/{name}string subnet = 101;- Parameters:
value- The subnet to set.- Returns:
- This builder for chaining.
-
clearSubnet
Traffic will be logged from VMs within the subnetwork. Format: projects/{project_id}/regions/{region}/subnetworks/{name}string subnet = 101;- Returns:
- This builder for chaining.
-
setSubnetBytes
Traffic will be logged from VMs within the subnetwork. Format: projects/{project_id}/regions/{region}/subnetworks/{name}string subnet = 101;- Parameters:
value- The bytes for subnet to set.- Returns:
- This builder for chaining.
-
hasInterconnectAttachment
public boolean hasInterconnectAttachment()Traffic will be logged from the Interconnect Attachment. Format: projects/{project_id}/regions/{region}/interconnectAttachments/{name}string interconnect_attachment = 102;- Specified by:
hasInterconnectAttachmentin interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- Whether the interconnectAttachment field is set.
-
getInterconnectAttachment
Traffic will be logged from the Interconnect Attachment. Format: projects/{project_id}/regions/{region}/interconnectAttachments/{name}string interconnect_attachment = 102;- Specified by:
getInterconnectAttachmentin interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- The interconnectAttachment.
-
getInterconnectAttachmentBytes
public com.google.protobuf.ByteString getInterconnectAttachmentBytes()Traffic will be logged from the Interconnect Attachment. Format: projects/{project_id}/regions/{region}/interconnectAttachments/{name}string interconnect_attachment = 102;- Specified by:
getInterconnectAttachmentBytesin interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- The bytes for interconnectAttachment.
-
setInterconnectAttachment
Traffic will be logged from the Interconnect Attachment. Format: projects/{project_id}/regions/{region}/interconnectAttachments/{name}string interconnect_attachment = 102;- Parameters:
value- The interconnectAttachment to set.- Returns:
- This builder for chaining.
-
clearInterconnectAttachment
Traffic will be logged from the Interconnect Attachment. Format: projects/{project_id}/regions/{region}/interconnectAttachments/{name}string interconnect_attachment = 102;- Returns:
- This builder for chaining.
-
setInterconnectAttachmentBytes
public EffectiveVpcFlowLogsConfig.Builder setInterconnectAttachmentBytes(com.google.protobuf.ByteString value) Traffic will be logged from the Interconnect Attachment. Format: projects/{project_id}/regions/{region}/interconnectAttachments/{name}string interconnect_attachment = 102;- Parameters:
value- The bytes for interconnectAttachment to set.- Returns:
- This builder for chaining.
-
hasVpnTunnel
public boolean hasVpnTunnel()Traffic will be logged from the VPN Tunnel. Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}string vpn_tunnel = 103;- Specified by:
hasVpnTunnelin interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- Whether the vpnTunnel field is set.
-
getVpnTunnel
Traffic will be logged from the VPN Tunnel. Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}string vpn_tunnel = 103;- Specified by:
getVpnTunnelin interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- The vpnTunnel.
-
getVpnTunnelBytes
public com.google.protobuf.ByteString getVpnTunnelBytes()Traffic will be logged from the VPN Tunnel. Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}string vpn_tunnel = 103;- Specified by:
getVpnTunnelBytesin interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- The bytes for vpnTunnel.
-
setVpnTunnel
Traffic will be logged from the VPN Tunnel. Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}string vpn_tunnel = 103;- Parameters:
value- The vpnTunnel to set.- Returns:
- This builder for chaining.
-
clearVpnTunnel
Traffic will be logged from the VPN Tunnel. Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}string vpn_tunnel = 103;- Returns:
- This builder for chaining.
-
setVpnTunnelBytes
Traffic will be logged from the VPN Tunnel. Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}string vpn_tunnel = 103;- Parameters:
value- The bytes for vpnTunnel to set.- Returns:
- This builder for chaining.
-
hasScope
public boolean hasScope()Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
optional .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope scope = 12;- Specified by:
hasScopein interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- Whether the scope field is set.
-
getScopeValue
public int getScopeValue()Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
optional .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope scope = 12;- Specified by:
getScopeValuein interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- The enum numeric value on the wire for scope.
-
setScopeValue
Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
optional .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope scope = 12;- Parameters:
value- The enum numeric value on the wire for scope to set.- Returns:
- This builder for chaining.
-
getScope
Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
optional .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope scope = 12;- Specified by:
getScopein interfaceEffectiveVpcFlowLogsConfigOrBuilder- Returns:
- The scope.
-
setScope
Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
optional .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope scope = 12;- Parameters:
value- The scope to set.- Returns:
- This builder for chaining.
-
clearScope
Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
optional .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope scope = 12;- Returns:
- This builder for chaining.
-