Package com.google.cloud.compute.v1
Interface BackendServiceCdnPolicyNegativeCachingPolicyOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
BackendServiceCdnPolicyNegativeCachingPolicy
,BackendServiceCdnPolicyNegativeCachingPolicy.Builder
public interface BackendServiceCdnPolicyNegativeCachingPolicyOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getCode()
The HTTP status code to define a TTL against.int
getTtl()
The TTL (in seconds) for which to cache responses with the corresponding status code.boolean
hasCode()
The HTTP status code to define a TTL against.boolean
hasTtl()
The TTL (in seconds) for which to cache responses with the corresponding status code.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
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 are 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 are 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.
-
-