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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<EffectiveVpcFlowLogsConfig.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<EffectiveVpcFlowLogsConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<EffectiveVpcFlowLogsConfig.Builder>
    • getDefaultInstanceForType

      public EffectiveVpcFlowLogsConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public EffectiveVpcFlowLogsConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public EffectiveVpcFlowLogsConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<EffectiveVpcFlowLogsConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<EffectiveVpcFlowLogsConfig.Builder>
      Throws:
      IOException
    • getTargetResourceCase

      public EffectiveVpcFlowLogsConfig.TargetResourceCase getTargetResourceCase()
      Specified by:
      getTargetResourceCase in interface EffectiveVpcFlowLogsConfigOrBuilder
    • clearTargetResource

      public EffectiveVpcFlowLogsConfig.Builder clearTargetResource()
    • getName

      public 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;
      Specified by:
      getName in interface EffectiveVpcFlowLogsConfigOrBuilder
      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:
      getNameBytes in interface EffectiveVpcFlowLogsConfigOrBuilder
      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

      public EffectiveVpcFlowLogsConfig.Builder setNameBytes(com.google.protobuf.ByteString value)
       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:
      hasState in interface EffectiveVpcFlowLogsConfigOrBuilder
      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:
      getStateValue in interface EffectiveVpcFlowLogsConfigOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public EffectiveVpcFlowLogsConfig.Builder setStateValue(int value)
       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

      public 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;
      Specified by:
      getState in interface EffectiveVpcFlowLogsConfigOrBuilder
      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:
      hasAggregationInterval in interface EffectiveVpcFlowLogsConfigOrBuilder
      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:
      getAggregationIntervalValue in interface EffectiveVpcFlowLogsConfigOrBuilder
      Returns:
      The enum numeric value on the wire for aggregationInterval.
    • setAggregationIntervalValue

      public EffectiveVpcFlowLogsConfig.Builder setAggregationIntervalValue(int 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 enum numeric value on the wire for aggregationInterval to set.
      Returns:
      This builder for chaining.
    • getAggregationInterval

      public 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;
      Specified by:
      getAggregationInterval in interface EffectiveVpcFlowLogsConfigOrBuilder
      Returns:
      The aggregationInterval.
    • setAggregationInterval

       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

      public EffectiveVpcFlowLogsConfig.Builder 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:
      hasFlowSampling in interface EffectiveVpcFlowLogsConfigOrBuilder
      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:
      getFlowSampling in interface EffectiveVpcFlowLogsConfigOrBuilder
      Returns:
      The flowSampling.
    • setFlowSampling

      public EffectiveVpcFlowLogsConfig.Builder setFlowSampling(float value)
       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

      public EffectiveVpcFlowLogsConfig.Builder 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:
      hasMetadata in interface EffectiveVpcFlowLogsConfigOrBuilder
      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:
      getMetadataValue in interface EffectiveVpcFlowLogsConfigOrBuilder
      Returns:
      The enum numeric value on the wire for metadata.
    • setMetadataValue

      public EffectiveVpcFlowLogsConfig.Builder setMetadataValue(int value)
       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

      public 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;
      Specified by:
      getMetadata in interface EffectiveVpcFlowLogsConfigOrBuilder
      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

      public EffectiveVpcFlowLogsConfig.Builder 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:
      getMetadataFieldsList in interface EffectiveVpcFlowLogsConfigOrBuilder
      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:
      getMetadataFieldsCount in interface EffectiveVpcFlowLogsConfigOrBuilder
      Returns:
      The count of metadataFields.
    • getMetadataFields

      public 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;
      Specified by:
      getMetadataFields in interface EffectiveVpcFlowLogsConfigOrBuilder
      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:
      getMetadataFieldsBytes in interface EffectiveVpcFlowLogsConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the metadataFields at the given index.
    • setMetadataFields

      public EffectiveVpcFlowLogsConfig.Builder setMetadataFields(int index, String 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:
      index - The index to set the value at.
      value - The metadataFields to set.
      Returns:
      This builder for chaining.
    • addMetadataFields

      public EffectiveVpcFlowLogsConfig.Builder addMetadataFields(String 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 metadataFields to add.
      Returns:
      This builder for chaining.
    • addAllMetadataFields

      public EffectiveVpcFlowLogsConfig.Builder addAllMetadataFields(Iterable<String> values)
       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

      public EffectiveVpcFlowLogsConfig.Builder 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:
      hasFilterExpr in interface EffectiveVpcFlowLogsConfigOrBuilder
      Returns:
      Whether the filterExpr field is set.
    • getFilterExpr

      public String getFilterExpr()
       Export filter used to define which VPC Flow Logs should be logged.
       
      optional string filter_expr = 8;
      Specified by:
      getFilterExpr in interface EffectiveVpcFlowLogsConfigOrBuilder
      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:
      getFilterExprBytes in interface EffectiveVpcFlowLogsConfigOrBuilder
      Returns:
      The bytes for filterExpr.
    • setFilterExpr

      public EffectiveVpcFlowLogsConfig.Builder setFilterExpr(String value)
       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

      public EffectiveVpcFlowLogsConfig.Builder clearFilterExpr()
       Export filter used to define which VPC Flow Logs should be logged.
       
      optional string filter_expr = 8;
      Returns:
      This builder for chaining.
    • setFilterExprBytes

      public EffectiveVpcFlowLogsConfig.Builder setFilterExprBytes(com.google.protobuf.ByteString value)
       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:
      hasCrossProjectMetadata in interface EffectiveVpcFlowLogsConfigOrBuilder
      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:
      getCrossProjectMetadataValue in interface EffectiveVpcFlowLogsConfigOrBuilder
      Returns:
      The enum numeric value on the wire for crossProjectMetadata.
    • setCrossProjectMetadataValue

      public EffectiveVpcFlowLogsConfig.Builder setCrossProjectMetadataValue(int 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 enum numeric value on the wire for crossProjectMetadata to set.
      Returns:
      This builder for chaining.
    • getCrossProjectMetadata

      public 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;
      Specified by:
      getCrossProjectMetadata in interface EffectiveVpcFlowLogsConfigOrBuilder
      Returns:
      The crossProjectMetadata.
    • setCrossProjectMetadata

       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

      public EffectiveVpcFlowLogsConfig.Builder 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:
      hasNetwork in interface EffectiveVpcFlowLogsConfigOrBuilder
      Returns:
      Whether the network field is set.
    • getNetwork

      public 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;
      Specified by:
      getNetwork in interface EffectiveVpcFlowLogsConfigOrBuilder
      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:
      getNetworkBytes in interface EffectiveVpcFlowLogsConfigOrBuilder
      Returns:
      The bytes for network.
    • setNetwork

      public EffectiveVpcFlowLogsConfig.Builder setNetwork(String value)
       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

      public EffectiveVpcFlowLogsConfig.Builder 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

      public EffectiveVpcFlowLogsConfig.Builder setNetworkBytes(com.google.protobuf.ByteString value)
       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:
      hasSubnet in interface EffectiveVpcFlowLogsConfigOrBuilder
      Returns:
      Whether the subnet field is set.
    • getSubnet

      public String getSubnet()
       Traffic will be logged from VMs within the subnetwork.
       Format: projects/{project_id}/regions/{region}/subnetworks/{name}
       
      string subnet = 101;
      Specified by:
      getSubnet in interface EffectiveVpcFlowLogsConfigOrBuilder
      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:
      getSubnetBytes in interface EffectiveVpcFlowLogsConfigOrBuilder
      Returns:
      The bytes for subnet.
    • setSubnet

      public EffectiveVpcFlowLogsConfig.Builder setSubnet(String value)
       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

      public EffectiveVpcFlowLogsConfig.Builder 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

      public EffectiveVpcFlowLogsConfig.Builder setSubnetBytes(com.google.protobuf.ByteString value)
       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:
      hasInterconnectAttachment in interface EffectiveVpcFlowLogsConfigOrBuilder
      Returns:
      Whether the interconnectAttachment field is set.
    • getInterconnectAttachment

      public String getInterconnectAttachment()
       Traffic will be logged from the Interconnect Attachment.
       Format:
       projects/{project_id}/regions/{region}/interconnectAttachments/{name}
       
      string interconnect_attachment = 102;
      Specified by:
      getInterconnectAttachment in interface EffectiveVpcFlowLogsConfigOrBuilder
      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:
      getInterconnectAttachmentBytes in interface EffectiveVpcFlowLogsConfigOrBuilder
      Returns:
      The bytes for interconnectAttachment.
    • setInterconnectAttachment

      public EffectiveVpcFlowLogsConfig.Builder setInterconnectAttachment(String value)
       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

      public EffectiveVpcFlowLogsConfig.Builder 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:
      hasVpnTunnel in interface EffectiveVpcFlowLogsConfigOrBuilder
      Returns:
      Whether the vpnTunnel field is set.
    • getVpnTunnel

      public String getVpnTunnel()
       Traffic will be logged from the VPN Tunnel.
       Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
       
      string vpn_tunnel = 103;
      Specified by:
      getVpnTunnel in interface EffectiveVpcFlowLogsConfigOrBuilder
      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:
      getVpnTunnelBytes in interface EffectiveVpcFlowLogsConfigOrBuilder
      Returns:
      The bytes for vpnTunnel.
    • setVpnTunnel

      public EffectiveVpcFlowLogsConfig.Builder setVpnTunnel(String value)
       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

      public EffectiveVpcFlowLogsConfig.Builder 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

      public EffectiveVpcFlowLogsConfig.Builder setVpnTunnelBytes(com.google.protobuf.ByteString value)
       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:
      hasScope in interface EffectiveVpcFlowLogsConfigOrBuilder
      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:
      getScopeValue in interface EffectiveVpcFlowLogsConfigOrBuilder
      Returns:
      The enum numeric value on the wire for scope.
    • setScopeValue

      public EffectiveVpcFlowLogsConfig.Builder setScopeValue(int value)
       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:
      getScope in interface EffectiveVpcFlowLogsConfigOrBuilder
      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.