Class SecurityPolicyRuleMatcher.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SecurityPolicyRuleMatcher.Builder>
com.google.cloud.compute.v1.SecurityPolicyRuleMatcher.Builder
All Implemented Interfaces:
SecurityPolicyRuleMatcherOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SecurityPolicyRuleMatcher

public static final class SecurityPolicyRuleMatcher.Builder extends com.google.protobuf.GeneratedMessage.Builder<SecurityPolicyRuleMatcher.Builder> implements SecurityPolicyRuleMatcherOrBuilder
 Represents a match condition that incoming traffic is evaluated against.
 Exactly one field must be specified.
 
Protobuf type google.cloud.compute.v1.SecurityPolicyRuleMatcher
  • 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<SecurityPolicyRuleMatcher.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<SecurityPolicyRuleMatcher.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<SecurityPolicyRuleMatcher.Builder>
    • getDefaultInstanceForType

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

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

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

      public SecurityPolicyRuleMatcher.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<SecurityPolicyRuleMatcher.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<SecurityPolicyRuleMatcher.Builder>
    • mergeFrom

      public SecurityPolicyRuleMatcher.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<SecurityPolicyRuleMatcher.Builder>
      Throws:
      IOException
    • hasConfig

      public boolean hasConfig()
       The configuration options available when specifying versioned_expr.
       This field must be specified if versioned_expr is specified and cannot
       be specified if versioned_expr is not specified.
       
      optional .google.cloud.compute.v1.SecurityPolicyRuleMatcherConfig config = 255820610;
      Specified by:
      hasConfig in interface SecurityPolicyRuleMatcherOrBuilder
      Returns:
      Whether the config field is set.
    • getConfig

      public SecurityPolicyRuleMatcherConfig getConfig()
       The configuration options available when specifying versioned_expr.
       This field must be specified if versioned_expr is specified and cannot
       be specified if versioned_expr is not specified.
       
      optional .google.cloud.compute.v1.SecurityPolicyRuleMatcherConfig config = 255820610;
      Specified by:
      getConfig in interface SecurityPolicyRuleMatcherOrBuilder
      Returns:
      The config.
    • setConfig

       The configuration options available when specifying versioned_expr.
       This field must be specified if versioned_expr is specified and cannot
       be specified if versioned_expr is not specified.
       
      optional .google.cloud.compute.v1.SecurityPolicyRuleMatcherConfig config = 255820610;
    • setConfig

       The configuration options available when specifying versioned_expr.
       This field must be specified if versioned_expr is specified and cannot
       be specified if versioned_expr is not specified.
       
      optional .google.cloud.compute.v1.SecurityPolicyRuleMatcherConfig config = 255820610;
    • mergeConfig

       The configuration options available when specifying versioned_expr.
       This field must be specified if versioned_expr is specified and cannot
       be specified if versioned_expr is not specified.
       
      optional .google.cloud.compute.v1.SecurityPolicyRuleMatcherConfig config = 255820610;
    • clearConfig

      public SecurityPolicyRuleMatcher.Builder clearConfig()
       The configuration options available when specifying versioned_expr.
       This field must be specified if versioned_expr is specified and cannot
       be specified if versioned_expr is not specified.
       
      optional .google.cloud.compute.v1.SecurityPolicyRuleMatcherConfig config = 255820610;
    • getConfigBuilder

      public SecurityPolicyRuleMatcherConfig.Builder getConfigBuilder()
       The configuration options available when specifying versioned_expr.
       This field must be specified if versioned_expr is specified and cannot
       be specified if versioned_expr is not specified.
       
      optional .google.cloud.compute.v1.SecurityPolicyRuleMatcherConfig config = 255820610;
    • getConfigOrBuilder

      public SecurityPolicyRuleMatcherConfigOrBuilder getConfigOrBuilder()
       The configuration options available when specifying versioned_expr.
       This field must be specified if versioned_expr is specified and cannot
       be specified if versioned_expr is not specified.
       
      optional .google.cloud.compute.v1.SecurityPolicyRuleMatcherConfig config = 255820610;
      Specified by:
      getConfigOrBuilder in interface SecurityPolicyRuleMatcherOrBuilder
    • hasExpr

      public boolean hasExpr()
       User defined CEVAL expression.
       A CEVAL expression is used to specify match criteria such as origin.ip,
       source.region_code and contents in the request header.
       Expressions containing `evaluateThreatIntelligence` require a Cloud
       Armor Enterprise subscription and are not supported in Edge Policies
       nor in Regional Policies. Expressions containing
       `evaluatePreconfiguredExpr('sourceiplist-*')` require a Cloud Armor
       Enterprise subscription and are only supported in Global Security
       Policies.
       
      optional .google.cloud.compute.v1.Expr expr = 3127797;
      Specified by:
      hasExpr in interface SecurityPolicyRuleMatcherOrBuilder
      Returns:
      Whether the expr field is set.
    • getExpr

      public Expr getExpr()
       User defined CEVAL expression.
       A CEVAL expression is used to specify match criteria such as origin.ip,
       source.region_code and contents in the request header.
       Expressions containing `evaluateThreatIntelligence` require a Cloud
       Armor Enterprise subscription and are not supported in Edge Policies
       nor in Regional Policies. Expressions containing
       `evaluatePreconfiguredExpr('sourceiplist-*')` require a Cloud Armor
       Enterprise subscription and are only supported in Global Security
       Policies.
       
      optional .google.cloud.compute.v1.Expr expr = 3127797;
      Specified by:
      getExpr in interface SecurityPolicyRuleMatcherOrBuilder
      Returns:
      The expr.
    • setExpr

      public SecurityPolicyRuleMatcher.Builder setExpr(Expr value)
       User defined CEVAL expression.
       A CEVAL expression is used to specify match criteria such as origin.ip,
       source.region_code and contents in the request header.
       Expressions containing `evaluateThreatIntelligence` require a Cloud
       Armor Enterprise subscription and are not supported in Edge Policies
       nor in Regional Policies. Expressions containing
       `evaluatePreconfiguredExpr('sourceiplist-*')` require a Cloud Armor
       Enterprise subscription and are only supported in Global Security
       Policies.
       
      optional .google.cloud.compute.v1.Expr expr = 3127797;
    • setExpr

      public SecurityPolicyRuleMatcher.Builder setExpr(Expr.Builder builderForValue)
       User defined CEVAL expression.
       A CEVAL expression is used to specify match criteria such as origin.ip,
       source.region_code and contents in the request header.
       Expressions containing `evaluateThreatIntelligence` require a Cloud
       Armor Enterprise subscription and are not supported in Edge Policies
       nor in Regional Policies. Expressions containing
       `evaluatePreconfiguredExpr('sourceiplist-*')` require a Cloud Armor
       Enterprise subscription and are only supported in Global Security
       Policies.
       
      optional .google.cloud.compute.v1.Expr expr = 3127797;
    • mergeExpr

      public SecurityPolicyRuleMatcher.Builder mergeExpr(Expr value)
       User defined CEVAL expression.
       A CEVAL expression is used to specify match criteria such as origin.ip,
       source.region_code and contents in the request header.
       Expressions containing `evaluateThreatIntelligence` require a Cloud
       Armor Enterprise subscription and are not supported in Edge Policies
       nor in Regional Policies. Expressions containing
       `evaluatePreconfiguredExpr('sourceiplist-*')` require a Cloud Armor
       Enterprise subscription and are only supported in Global Security
       Policies.
       
      optional .google.cloud.compute.v1.Expr expr = 3127797;
    • clearExpr

       User defined CEVAL expression.
       A CEVAL expression is used to specify match criteria such as origin.ip,
       source.region_code and contents in the request header.
       Expressions containing `evaluateThreatIntelligence` require a Cloud
       Armor Enterprise subscription and are not supported in Edge Policies
       nor in Regional Policies. Expressions containing
       `evaluatePreconfiguredExpr('sourceiplist-*')` require a Cloud Armor
       Enterprise subscription and are only supported in Global Security
       Policies.
       
      optional .google.cloud.compute.v1.Expr expr = 3127797;
    • getExprBuilder

      public Expr.Builder getExprBuilder()
       User defined CEVAL expression.
       A CEVAL expression is used to specify match criteria such as origin.ip,
       source.region_code and contents in the request header.
       Expressions containing `evaluateThreatIntelligence` require a Cloud
       Armor Enterprise subscription and are not supported in Edge Policies
       nor in Regional Policies. Expressions containing
       `evaluatePreconfiguredExpr('sourceiplist-*')` require a Cloud Armor
       Enterprise subscription and are only supported in Global Security
       Policies.
       
      optional .google.cloud.compute.v1.Expr expr = 3127797;
    • getExprOrBuilder

      public ExprOrBuilder getExprOrBuilder()
       User defined CEVAL expression.
       A CEVAL expression is used to specify match criteria such as origin.ip,
       source.region_code and contents in the request header.
       Expressions containing `evaluateThreatIntelligence` require a Cloud
       Armor Enterprise subscription and are not supported in Edge Policies
       nor in Regional Policies. Expressions containing
       `evaluatePreconfiguredExpr('sourceiplist-*')` require a Cloud Armor
       Enterprise subscription and are only supported in Global Security
       Policies.
       
      optional .google.cloud.compute.v1.Expr expr = 3127797;
      Specified by:
      getExprOrBuilder in interface SecurityPolicyRuleMatcherOrBuilder
    • hasExprOptions

      public boolean hasExprOptions()
       The configuration options available when specifying a user defined
       CEVAL expression (i.e., 'expr').
       
      optional .google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions expr_options = 486220372;
      Specified by:
      hasExprOptions in interface SecurityPolicyRuleMatcherOrBuilder
      Returns:
      Whether the exprOptions field is set.
    • getExprOptions

      public SecurityPolicyRuleMatcherExprOptions getExprOptions()
       The configuration options available when specifying a user defined
       CEVAL expression (i.e., 'expr').
       
      optional .google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions expr_options = 486220372;
      Specified by:
      getExprOptions in interface SecurityPolicyRuleMatcherOrBuilder
      Returns:
      The exprOptions.
    • setExprOptions

       The configuration options available when specifying a user defined
       CEVAL expression (i.e., 'expr').
       
      optional .google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions expr_options = 486220372;
    • setExprOptions

       The configuration options available when specifying a user defined
       CEVAL expression (i.e., 'expr').
       
      optional .google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions expr_options = 486220372;
    • mergeExprOptions

       The configuration options available when specifying a user defined
       CEVAL expression (i.e., 'expr').
       
      optional .google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions expr_options = 486220372;
    • clearExprOptions

      public SecurityPolicyRuleMatcher.Builder clearExprOptions()
       The configuration options available when specifying a user defined
       CEVAL expression (i.e., 'expr').
       
      optional .google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions expr_options = 486220372;
    • getExprOptionsBuilder

      public SecurityPolicyRuleMatcherExprOptions.Builder getExprOptionsBuilder()
       The configuration options available when specifying a user defined
       CEVAL expression (i.e., 'expr').
       
      optional .google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions expr_options = 486220372;
    • getExprOptionsOrBuilder

      public SecurityPolicyRuleMatcherExprOptionsOrBuilder getExprOptionsOrBuilder()
       The configuration options available when specifying a user defined
       CEVAL expression (i.e., 'expr').
       
      optional .google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions expr_options = 486220372;
      Specified by:
      getExprOptionsOrBuilder in interface SecurityPolicyRuleMatcherOrBuilder
    • hasVersionedExpr

      public boolean hasVersionedExpr()
       Preconfigured versioned expression.
       If this field is specified, config must also be specified.
       Available preconfigured expressions along with their requirements are:
       SRC_IPS_V1 - must specify the corresponding src_ip_range field in
       config.
       Check the VersionedExpr enum for the list of possible values.
       
      optional string versioned_expr = 322286013;
      Specified by:
      hasVersionedExpr in interface SecurityPolicyRuleMatcherOrBuilder
      Returns:
      Whether the versionedExpr field is set.
    • getVersionedExpr

      public String getVersionedExpr()
       Preconfigured versioned expression.
       If this field is specified, config must also be specified.
       Available preconfigured expressions along with their requirements are:
       SRC_IPS_V1 - must specify the corresponding src_ip_range field in
       config.
       Check the VersionedExpr enum for the list of possible values.
       
      optional string versioned_expr = 322286013;
      Specified by:
      getVersionedExpr in interface SecurityPolicyRuleMatcherOrBuilder
      Returns:
      The versionedExpr.
    • getVersionedExprBytes

      public com.google.protobuf.ByteString getVersionedExprBytes()
       Preconfigured versioned expression.
       If this field is specified, config must also be specified.
       Available preconfigured expressions along with their requirements are:
       SRC_IPS_V1 - must specify the corresponding src_ip_range field in
       config.
       Check the VersionedExpr enum for the list of possible values.
       
      optional string versioned_expr = 322286013;
      Specified by:
      getVersionedExprBytes in interface SecurityPolicyRuleMatcherOrBuilder
      Returns:
      The bytes for versionedExpr.
    • setVersionedExpr

      public SecurityPolicyRuleMatcher.Builder setVersionedExpr(String value)
       Preconfigured versioned expression.
       If this field is specified, config must also be specified.
       Available preconfigured expressions along with their requirements are:
       SRC_IPS_V1 - must specify the corresponding src_ip_range field in
       config.
       Check the VersionedExpr enum for the list of possible values.
       
      optional string versioned_expr = 322286013;
      Parameters:
      value - The versionedExpr to set.
      Returns:
      This builder for chaining.
    • clearVersionedExpr

      public SecurityPolicyRuleMatcher.Builder clearVersionedExpr()
       Preconfigured versioned expression.
       If this field is specified, config must also be specified.
       Available preconfigured expressions along with their requirements are:
       SRC_IPS_V1 - must specify the corresponding src_ip_range field in
       config.
       Check the VersionedExpr enum for the list of possible values.
       
      optional string versioned_expr = 322286013;
      Returns:
      This builder for chaining.
    • setVersionedExprBytes

      public SecurityPolicyRuleMatcher.Builder setVersionedExprBytes(com.google.protobuf.ByteString value)
       Preconfigured versioned expression.
       If this field is specified, config must also be specified.
       Available preconfigured expressions along with their requirements are:
       SRC_IPS_V1 - must specify the corresponding src_ip_range field in
       config.
       Check the VersionedExpr enum for the list of possible values.
       
      optional string versioned_expr = 322286013;
      Parameters:
      value - The bytes for versionedExpr to set.
      Returns:
      This builder for chaining.