Interface EffectiveVpcFlowLogsConfigOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
EffectiveVpcFlowLogsConfig,EffectiveVpcFlowLogsConfig.Builder
@Generated
public interface EffectiveVpcFlowLogsConfigOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionThe 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.Export 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.Custom 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.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
String 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;- Returns:
- The name.
-
getNameBytes
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;- Returns:
- The bytes for name.
-
hasState
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;- Returns:
- Whether the state field is set.
-
getStateValue
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;- Returns:
- The enum numeric value on the wire for state.
-
getState
VpcFlowLogsConfig.State 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;- Returns:
- The state.
-
hasAggregationInterval
boolean hasAggregationInterval()The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4;- Returns:
- Whether the aggregationInterval field is set.
-
getAggregationIntervalValue
int getAggregationIntervalValue()The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4;- Returns:
- The enum numeric value on the wire for aggregationInterval.
-
getAggregationInterval
VpcFlowLogsConfig.AggregationInterval getAggregationInterval()The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4;- Returns:
- The aggregationInterval.
-
hasFlowSampling
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;- Returns:
- Whether the flowSampling field is set.
-
getFlowSampling
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;- Returns:
- The flowSampling.
-
hasMetadata
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;- Returns:
- Whether the metadata field is set.
-
getMetadataValue
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;- Returns:
- The enum numeric value on the wire for metadata.
-
getMetadata
VpcFlowLogsConfig.Metadata 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;- Returns:
- The metadata.
-
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;- Returns:
- A list containing the metadataFields.
-
getMetadataFieldsCount
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;- 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;- Parameters:
index- The index of the element to return.- Returns:
- The metadataFields at the given index.
-
getMetadataFieldsBytes
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;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the metadataFields at the given index.
-
hasFilterExpr
boolean hasFilterExpr()Export filter used to define which VPC Flow Logs should be logged.
optional string filter_expr = 8;- Returns:
- Whether the filterExpr field is set.
-
getFilterExpr
String getFilterExpr()Export filter used to define which VPC Flow Logs should be logged.
optional string filter_expr = 8;- Returns:
- The filterExpr.
-
getFilterExprBytes
com.google.protobuf.ByteString getFilterExprBytes()Export filter used to define which VPC Flow Logs should be logged.
optional string filter_expr = 8;- Returns:
- The bytes for filterExpr.
-
hasCrossProjectMetadata
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;- Returns:
- Whether the crossProjectMetadata field is set.
-
getCrossProjectMetadataValue
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;- Returns:
- The enum numeric value on the wire for crossProjectMetadata.
-
getCrossProjectMetadata
VpcFlowLogsConfig.CrossProjectMetadata 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;- Returns:
- The crossProjectMetadata.
-
hasNetwork
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;- Returns:
- Whether the network field is set.
-
getNetwork
String 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;- Returns:
- The network.
-
getNetworkBytes
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;- Returns:
- The bytes for network.
-
hasSubnet
boolean hasSubnet()Traffic will be logged from VMs within the subnetwork. Format: projects/{project_id}/regions/{region}/subnetworks/{name}string subnet = 101;- Returns:
- Whether the subnet field is set.
-
getSubnet
String getSubnet()Traffic will be logged from VMs within the subnetwork. Format: projects/{project_id}/regions/{region}/subnetworks/{name}string subnet = 101;- Returns:
- The subnet.
-
getSubnetBytes
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;- Returns:
- The bytes for subnet.
-
hasInterconnectAttachment
boolean hasInterconnectAttachment()Traffic will be logged from the Interconnect Attachment. Format: projects/{project_id}/regions/{region}/interconnectAttachments/{name}string interconnect_attachment = 102;- Returns:
- Whether the interconnectAttachment field is set.
-
getInterconnectAttachment
String getInterconnectAttachment()Traffic will be logged from the Interconnect Attachment. Format: projects/{project_id}/regions/{region}/interconnectAttachments/{name}string interconnect_attachment = 102;- Returns:
- The interconnectAttachment.
-
getInterconnectAttachmentBytes
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;- Returns:
- The bytes for interconnectAttachment.
-
hasVpnTunnel
boolean hasVpnTunnel()Traffic will be logged from the VPN Tunnel. Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}string vpn_tunnel = 103;- Returns:
- Whether the vpnTunnel field is set.
-
getVpnTunnel
String getVpnTunnel()Traffic will be logged from the VPN Tunnel. Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}string vpn_tunnel = 103;- Returns:
- The vpnTunnel.
-
getVpnTunnelBytes
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;- Returns:
- The bytes for vpnTunnel.
-
hasScope
boolean hasScope()Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
optional .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope scope = 12;- Returns:
- Whether the scope field is set.
-
getScopeValue
int getScopeValue()Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
optional .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope scope = 12;- Returns:
- The enum numeric value on the wire for scope.
-
getScope
EffectiveVpcFlowLogsConfig.Scope getScope()Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
optional .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope scope = 12;- Returns:
- The scope.
-
getTargetResourceCase
EffectiveVpcFlowLogsConfig.TargetResourceCase getTargetResourceCase()
-