Interface CachePolicyNegativeCachingPolicyOrBuilder

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

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

    Modifier and Type
    Method
    Description
    int
    The HTTP status code to define a TTL against.
    The TTL (in seconds) for which to cache responses with the corresponding status code.
    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). Infrequently accessed
       objects may be evicted from the cache before the defined TTL.
       
      optional .google.cloud.compute.v1.Duration ttl = 115180;
      Returns:
      Whether the ttl field is set.
    • getTtl

      Duration getTtl()
       The TTL (in seconds) for which to cache responses with the
       corresponding status code.
       The maximum allowed value is 1800s (30 minutes). Infrequently accessed
       objects may be evicted from the cache before the defined TTL.
       
      optional .google.cloud.compute.v1.Duration ttl = 115180;
      Returns:
      The ttl.
    • getTtlOrBuilder

      DurationOrBuilder getTtlOrBuilder()
       The TTL (in seconds) for which to cache responses with the
       corresponding status code.
       The maximum allowed value is 1800s (30 minutes). Infrequently accessed
       objects may be evicted from the cache before the defined TTL.
       
      optional .google.cloud.compute.v1.Duration ttl = 115180;