Class SecurityPolicyRuleMatcher.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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
      • setRepeatedField

        public SecurityPolicyRuleMatcher.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                  int index,
                                                                  Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRuleMatcher.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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

        public SecurityPolicyRuleMatcher.Builder setConfig​(SecurityPolicyRuleMatcherConfig value)
         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

        public SecurityPolicyRuleMatcher.Builder setConfig​(SecurityPolicyRuleMatcherConfig.Builder builderForValue)
         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

        public SecurityPolicyRuleMatcher.Builder mergeConfig​(SecurityPolicyRuleMatcherConfig value)
         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;
      • 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 Cloud Armor Managed Protection Plus tier and are not supported in Edge Policies nor in Regional Policies. Expressions containing `evaluatePreconfiguredExpr('sourceiplist-*')` require Cloud Armor Managed Protection Plus tier 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 Cloud Armor Managed Protection Plus tier and are not supported in Edge Policies nor in Regional Policies. Expressions containing `evaluatePreconfiguredExpr('sourceiplist-*')` require Cloud Armor Managed Protection Plus tier 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 Cloud Armor Managed Protection Plus tier and are not supported in Edge Policies nor in Regional Policies. Expressions containing `evaluatePreconfiguredExpr('sourceiplist-*')` require Cloud Armor Managed Protection Plus tier 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 Cloud Armor Managed Protection Plus tier and are not supported in Edge Policies nor in Regional Policies. Expressions containing `evaluatePreconfiguredExpr('sourceiplist-*')` require Cloud Armor Managed Protection Plus tier 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 Cloud Armor Managed Protection Plus tier and are not supported in Edge Policies nor in Regional Policies. Expressions containing `evaluatePreconfiguredExpr('sourceiplist-*')` require Cloud Armor Managed Protection Plus tier and are only supported in Global Security Policies.
         
        optional .google.cloud.compute.v1.Expr expr = 3127797;
      • clearExpr

        public SecurityPolicyRuleMatcher.Builder 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 Cloud Armor Managed Protection Plus tier and are not supported in Edge Policies nor in Regional Policies. Expressions containing `evaluatePreconfiguredExpr('sourceiplist-*')` require Cloud Armor Managed Protection Plus tier 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 Cloud Armor Managed Protection Plus tier and are not supported in Edge Policies nor in Regional Policies. Expressions containing `evaluatePreconfiguredExpr('sourceiplist-*')` require Cloud Armor Managed Protection Plus tier 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 Cloud Armor Managed Protection Plus tier and are not supported in Edge Policies nor in Regional Policies. Expressions containing `evaluatePreconfiguredExpr('sourceiplist-*')` require Cloud Armor Managed Protection Plus tier and are only supported in Global Security Policies.
         
        optional .google.cloud.compute.v1.Expr expr = 3127797;
        Specified by:
        getExprOrBuilder 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.
      • setUnknownFields

        public final SecurityPolicyRuleMatcher.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRuleMatcher.Builder>
      • mergeUnknownFields

        public final SecurityPolicyRuleMatcher.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRuleMatcher.Builder>