Interface CustomErrorResponsePolicyOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
CustomErrorResponsePolicy, CustomErrorResponsePolicy.Builder

@Generated public interface CustomErrorResponsePolicyOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getErrorResponseRulesList

       Specifies rules for returning error responses.
      
       In a given policy, if you specify rules for both a range of error codes
       as well as rules for specific error codes then rules with specific error
       codes have a higher priority. For example, assume that you configure a rule
       for 401 (Un-authorized) code, and another for all 4 series
       error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied.
       However if the backend service returns a 403, the rule for4xx takes effect.
       
      repeated .google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule error_response_rules = 14620304;
    • getErrorResponseRules

      CustomErrorResponsePolicyCustomErrorResponseRule getErrorResponseRules(int index)
       Specifies rules for returning error responses.
      
       In a given policy, if you specify rules for both a range of error codes
       as well as rules for specific error codes then rules with specific error
       codes have a higher priority. For example, assume that you configure a rule
       for 401 (Un-authorized) code, and another for all 4 series
       error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied.
       However if the backend service returns a 403, the rule for4xx takes effect.
       
      repeated .google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule error_response_rules = 14620304;
    • getErrorResponseRulesCount

      int getErrorResponseRulesCount()
       Specifies rules for returning error responses.
      
       In a given policy, if you specify rules for both a range of error codes
       as well as rules for specific error codes then rules with specific error
       codes have a higher priority. For example, assume that you configure a rule
       for 401 (Un-authorized) code, and another for all 4 series
       error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied.
       However if the backend service returns a 403, the rule for4xx takes effect.
       
      repeated .google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule error_response_rules = 14620304;
    • getErrorResponseRulesOrBuilderList

      List<? extends CustomErrorResponsePolicyCustomErrorResponseRuleOrBuilder> getErrorResponseRulesOrBuilderList()
       Specifies rules for returning error responses.
      
       In a given policy, if you specify rules for both a range of error codes
       as well as rules for specific error codes then rules with specific error
       codes have a higher priority. For example, assume that you configure a rule
       for 401 (Un-authorized) code, and another for all 4 series
       error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied.
       However if the backend service returns a 403, the rule for4xx takes effect.
       
      repeated .google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule error_response_rules = 14620304;
    • getErrorResponseRulesOrBuilder

      CustomErrorResponsePolicyCustomErrorResponseRuleOrBuilder getErrorResponseRulesOrBuilder(int index)
       Specifies rules for returning error responses.
      
       In a given policy, if you specify rules for both a range of error codes
       as well as rules for specific error codes then rules with specific error
       codes have a higher priority. For example, assume that you configure a rule
       for 401 (Un-authorized) code, and another for all 4 series
       error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied.
       However if the backend service returns a 403, the rule for4xx takes effect.
       
      repeated .google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule error_response_rules = 14620304;
    • hasErrorService

      boolean hasErrorService()
       The full or partial URL to the BackendBucket resource that
       contains the custom error content. Examples are:
      
      
       - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
       - compute/v1/projects/project/global/backendBuckets/myBackendBucket
       - global/backendBuckets/myBackendBucket
      
       If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule,
       an errorService specified at a higher level in theUrlMap will be used. IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must specifyerrorService.
      
       If load balancer cannot reach
       the backendBucket, a simple Not Found Error will
       be returned, with the original response code (oroverrideResponseCode if configured).
      
       errorService is not supported for internal or regionalHTTP/HTTPS load balancers.
       
      optional string error_service = 164214654;
      Returns:
      Whether the errorService field is set.
    • getErrorService

      String getErrorService()
       The full or partial URL to the BackendBucket resource that
       contains the custom error content. Examples are:
      
      
       - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
       - compute/v1/projects/project/global/backendBuckets/myBackendBucket
       - global/backendBuckets/myBackendBucket
      
       If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule,
       an errorService specified at a higher level in theUrlMap will be used. IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must specifyerrorService.
      
       If load balancer cannot reach
       the backendBucket, a simple Not Found Error will
       be returned, with the original response code (oroverrideResponseCode if configured).
      
       errorService is not supported for internal or regionalHTTP/HTTPS load balancers.
       
      optional string error_service = 164214654;
      Returns:
      The errorService.
    • getErrorServiceBytes

      com.google.protobuf.ByteString getErrorServiceBytes()
       The full or partial URL to the BackendBucket resource that
       contains the custom error content. Examples are:
      
      
       - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
       - compute/v1/projects/project/global/backendBuckets/myBackendBucket
       - global/backendBuckets/myBackendBucket
      
       If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule,
       an errorService specified at a higher level in theUrlMap will be used. IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must specifyerrorService.
      
       If load balancer cannot reach
       the backendBucket, a simple Not Found Error will
       be returned, with the original response code (oroverrideResponseCode if configured).
      
       errorService is not supported for internal or regionalHTTP/HTTPS load balancers.
       
      optional string error_service = 164214654;
      Returns:
      The bytes for errorService.