Interface BackendBucketCdnPolicyNegativeCachingPolicyOrBuilder

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

@Generated public interface BackendBucketCdnPolicyNegativeCachingPolicyOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The HTTP status code to define a TTL against.
    int
    The TTL (in seconds) for which to cache responses with the corresponding status code.
    boolean
    The HTTP status code to define a TTL against.
    boolean
    The TTL (in seconds) for which to cache responses with the corresponding status code.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • hasCode

      boolean hasCode()
       The HTTP status code to define a TTL against. Only HTTP status codes
       300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be
       specified as values, and you cannot specify a status code more than
       once.
       
      optional int32 code = 3059181;
      Returns:
      Whether the code field is set.
    • getCode

      int getCode()
       The HTTP status code to define a TTL against. Only HTTP status codes
       300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be
       specified as values, and you cannot specify a status code more than
       once.
       
      optional int32 code = 3059181;
      Returns:
      The code.
    • hasTtl

      boolean hasTtl()
       The TTL (in seconds) for which to cache responses with the
       corresponding status code.
       The maximum allowed value is 1800s (30 minutes), noting that
       infrequently accessed objects may be evicted from the cache before the
       defined TTL.
       
      optional int32 ttl = 115180;
      Returns:
      Whether the ttl field is set.
    • getTtl

      int getTtl()
       The TTL (in seconds) for which to cache responses with the
       corresponding status code.
       The maximum allowed value is 1800s (30 minutes), noting that
       infrequently accessed objects may be evicted from the cache before the
       defined TTL.
       
      optional int32 ttl = 115180;
      Returns:
      The ttl.