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 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

       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

       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

      List<String> 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

      String getMetadataFields(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 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

       Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
       
      optional .google.cloud.networkmanagement.v1beta1.EffectiveVpcFlowLogsConfig.Scope scope = 12;
      Returns:
      The scope.
    • getTargetResourceCase