public static final class BackendServiceCdnPolicyNegativeCachingPolicy.Builder extends GeneratedMessageV3.Builder<BackendServiceCdnPolicyNegativeCachingPolicy.Builder> implements BackendServiceCdnPolicyNegativeCachingPolicyOrBuilder
Specify CDN TTLs for response error codes.
Protobuf type google.cloud.compute.v1.BackendServiceCdnPolicyNegativeCachingPolicy
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BackendServiceCdnPolicyNegativeCachingPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public BackendServiceCdnPolicyNegativeCachingPolicy build()
buildPartial()
public BackendServiceCdnPolicyNegativeCachingPolicy buildPartial()
clear()
public BackendServiceCdnPolicyNegativeCachingPolicy.Builder clear()
Overrides
clearCode()
public BackendServiceCdnPolicyNegativeCachingPolicy.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 are can be specified as values, and you cannot specify a status code more than once.
optional int32 code = 3059181;
clearField(Descriptors.FieldDescriptor field)
public BackendServiceCdnPolicyNegativeCachingPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public BackendServiceCdnPolicyNegativeCachingPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearTtl()
public BackendServiceCdnPolicyNegativeCachingPolicy.Builder clearTtl()
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;
clone()
public BackendServiceCdnPolicyNegativeCachingPolicy.Builder clone()
Overrides
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 |
---|
Type | Description |
int | The code.
|
getDefaultInstanceForType()
public BackendServiceCdnPolicyNegativeCachingPolicy getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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 |
---|
Type | Description |
int | The ttl.
|
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 |
---|
Type | Description |
boolean | Whether the code field is set.
|
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 |
---|
Type | Description |
boolean | Whether the ttl field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(BackendServiceCdnPolicyNegativeCachingPolicy other)
public BackendServiceCdnPolicyNegativeCachingPolicy.Builder mergeFrom(BackendServiceCdnPolicyNegativeCachingPolicy other)
public BackendServiceCdnPolicyNegativeCachingPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public BackendServiceCdnPolicyNegativeCachingPolicy.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BackendServiceCdnPolicyNegativeCachingPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setCode(int value)
public BackendServiceCdnPolicyNegativeCachingPolicy.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 are can be specified as values, and you cannot specify a status code more than once.
optional int32 code = 3059181;
Parameter |
---|
Name | Description |
value | int
The code to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public BackendServiceCdnPolicyNegativeCachingPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BackendServiceCdnPolicyNegativeCachingPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setTtl(int value)
public BackendServiceCdnPolicyNegativeCachingPolicy.Builder setTtl(int value)
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;
Parameter |
---|
Name | Description |
value | int
The ttl to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final BackendServiceCdnPolicyNegativeCachingPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides