public static final class CachePolicyNegativeCachingPolicy.Builder extends GeneratedMessage.Builder<CachePolicyNegativeCachingPolicy.Builder> implements CachePolicyNegativeCachingPolicyOrBuilderSpecify CDN TTLs for response error codes.
Protobuf type google.cloud.compute.v1.CachePolicyNegativeCachingPolicy
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CachePolicyNegativeCachingPolicy.BuilderImplements
CachePolicyNegativeCachingPolicyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CachePolicyNegativeCachingPolicy build()| Returns | |
|---|---|
| Type | Description |
CachePolicyNegativeCachingPolicy |
|
buildPartial()
public CachePolicyNegativeCachingPolicy buildPartial()| Returns | |
|---|---|
| Type | Description |
CachePolicyNegativeCachingPolicy |
|
clear()
public CachePolicyNegativeCachingPolicy.Builder clear()| Returns | |
|---|---|
| Type | Description |
CachePolicyNegativeCachingPolicy.Builder |
|
clearCode()
public CachePolicyNegativeCachingPolicy.Builder clearCode()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 | |
|---|---|
| Type | Description |
CachePolicyNegativeCachingPolicy.Builder |
This builder for chaining. |
clearTtl()
public CachePolicyNegativeCachingPolicy.Builder clearTtl()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 | |
|---|---|
| Type | Description |
CachePolicyNegativeCachingPolicy.Builder |
|
getCode()
public 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 | |
|---|---|
| Type | Description |
int |
The code. |
getDefaultInstanceForType()
public CachePolicyNegativeCachingPolicy getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CachePolicyNegativeCachingPolicy |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getTtl()
public 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 | |
|---|---|
| Type | Description |
Duration |
The ttl. |
getTtlBuilder()
public Duration.Builder getTtlBuilder()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 | |
|---|---|
| Type | Description |
Duration.Builder |
|
getTtlOrBuilder()
public 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;
| Returns | |
|---|---|
| Type | Description |
DurationOrBuilder |
|
hasCode()
public 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 | |
|---|---|
| Type | Description |
boolean |
Whether the code field is set. |
hasTtl()
public 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 | |
|---|---|
| Type | Description |
boolean |
Whether the ttl field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CachePolicyNegativeCachingPolicy other)
public CachePolicyNegativeCachingPolicy.Builder mergeFrom(CachePolicyNegativeCachingPolicy other)| Parameter | |
|---|---|
| Name | Description |
other |
CachePolicyNegativeCachingPolicy |
| Returns | |
|---|---|
| Type | Description |
CachePolicyNegativeCachingPolicy.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CachePolicyNegativeCachingPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CachePolicyNegativeCachingPolicy.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CachePolicyNegativeCachingPolicy.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CachePolicyNegativeCachingPolicy.Builder |
|
mergeTtl(Duration value)
public CachePolicyNegativeCachingPolicy.Builder mergeTtl(Duration value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
CachePolicyNegativeCachingPolicy.Builder |
|
setCode(int value)
public CachePolicyNegativeCachingPolicy.Builder setCode(int value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe code to set. |
| Returns | |
|---|---|
| Type | Description |
CachePolicyNegativeCachingPolicy.Builder |
This builder for chaining. |
setTtl(Duration value)
public CachePolicyNegativeCachingPolicy.Builder setTtl(Duration value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
CachePolicyNegativeCachingPolicy.Builder |
|
setTtl(Duration.Builder builderForValue)
public CachePolicyNegativeCachingPolicy.Builder setTtl(Duration.Builder builderForValue)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;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Duration.Builder |
| Returns | |
|---|---|
| Type | Description |
CachePolicyNegativeCachingPolicy.Builder |
|