Class ManagedFolder.RapidCacheConfig.Builder (2.71.0)

public static final class ManagedFolder.RapidCacheConfig.Builder extends GeneratedMessage.Builder<ManagedFolder.RapidCacheConfig.Builder> implements ManagedFolder.RapidCacheConfigOrBuilder

Rapid Cache configuration for a managed prefix. This configuration is used to determine how the rapid cache behaves for objects under the managed folder.

Protobuf type google.storage.control.v2.ManagedFolder.RapidCacheConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public ManagedFolder.RapidCacheConfig build()
Returns
Type Description
ManagedFolder.RapidCacheConfig

buildPartial()

public ManagedFolder.RapidCacheConfig buildPartial()
Returns
Type Description
ManagedFolder.RapidCacheConfig

clear()

public ManagedFolder.RapidCacheConfig.Builder clear()
Returns
Type Description
ManagedFolder.RapidCacheConfig.Builder
Overrides

clearPolicies()

public ManagedFolder.RapidCacheConfig.Builder clearPolicies()
Returns
Type Description
ManagedFolder.RapidCacheConfig.Builder

containsPolicies(String key)

public boolean containsPolicies(String key)

Optional. A map of rapid_cache_id to RapidCachePolicy for this prefix. Currently, the key rapid_cache_id is the zone. However, the field is generalized as rapid_cache_id to align the policy lifetime with the cache instance lifetime. This allows for a future transition from zone to a cache id if required.

map<string, .google.storage.control.v2.ManagedFolder.RapidCacheConfig.RapidCachePolicy> policies = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public ManagedFolder.RapidCacheConfig getDefaultInstanceForType()
Returns
Type Description
ManagedFolder.RapidCacheConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMutablePolicies() (deprecated)

public Map<String,ManagedFolder.RapidCacheConfig.RapidCachePolicy> getMutablePolicies()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,RapidCachePolicy>

getPolicies() (deprecated)

public Map<String,ManagedFolder.RapidCacheConfig.RapidCachePolicy> getPolicies()

Use #getPoliciesMap() instead.

Returns
Type Description
Map<String,RapidCachePolicy>

getPoliciesCount()

public int getPoliciesCount()

Optional. A map of rapid_cache_id to RapidCachePolicy for this prefix. Currently, the key rapid_cache_id is the zone. However, the field is generalized as rapid_cache_id to align the policy lifetime with the cache instance lifetime. This allows for a future transition from zone to a cache id if required.

map<string, .google.storage.control.v2.ManagedFolder.RapidCacheConfig.RapidCachePolicy> policies = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getPoliciesMap()

public Map<String,ManagedFolder.RapidCacheConfig.RapidCachePolicy> getPoliciesMap()

Optional. A map of rapid_cache_id to RapidCachePolicy for this prefix. Currently, the key rapid_cache_id is the zone. However, the field is generalized as rapid_cache_id to align the policy lifetime with the cache instance lifetime. This allows for a future transition from zone to a cache id if required.

map<string, .google.storage.control.v2.ManagedFolder.RapidCacheConfig.RapidCachePolicy> policies = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,RapidCachePolicy>

getPoliciesOrDefault(String key, ManagedFolder.RapidCacheConfig.RapidCachePolicy defaultValue)

public ManagedFolder.RapidCacheConfig.RapidCachePolicy getPoliciesOrDefault(String key, ManagedFolder.RapidCacheConfig.RapidCachePolicy defaultValue)

Optional. A map of rapid_cache_id to RapidCachePolicy for this prefix. Currently, the key rapid_cache_id is the zone. However, the field is generalized as rapid_cache_id to align the policy lifetime with the cache instance lifetime. This allows for a future transition from zone to a cache id if required.

map<string, .google.storage.control.v2.ManagedFolder.RapidCacheConfig.RapidCachePolicy> policies = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue ManagedFolder.RapidCacheConfig.RapidCachePolicy
Returns
Type Description
ManagedFolder.RapidCacheConfig.RapidCachePolicy

getPoliciesOrThrow(String key)

public ManagedFolder.RapidCacheConfig.RapidCachePolicy getPoliciesOrThrow(String key)

Optional. A map of rapid_cache_id to RapidCachePolicy for this prefix. Currently, the key rapid_cache_id is the zone. However, the field is generalized as rapid_cache_id to align the policy lifetime with the cache instance lifetime. This allows for a future transition from zone to a cache id if required.

map<string, .google.storage.control.v2.ManagedFolder.RapidCacheConfig.RapidCachePolicy> policies = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
ManagedFolder.RapidCacheConfig.RapidCachePolicy

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ManagedFolder.RapidCacheConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ManagedFolder.RapidCacheConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ManagedFolder.RapidCacheConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ManagedFolder.RapidCacheConfig.Builder
Overrides

mergeFrom(ManagedFolder.RapidCacheConfig other)

public ManagedFolder.RapidCacheConfig.Builder mergeFrom(ManagedFolder.RapidCacheConfig other)
Parameter
Name Description
other ManagedFolder.RapidCacheConfig
Returns
Type Description
ManagedFolder.RapidCacheConfig.Builder

putAllPolicies(Map<String,ManagedFolder.RapidCacheConfig.RapidCachePolicy> values)

public ManagedFolder.RapidCacheConfig.Builder putAllPolicies(Map<String,ManagedFolder.RapidCacheConfig.RapidCachePolicy> values)

Optional. A map of rapid_cache_id to RapidCachePolicy for this prefix. Currently, the key rapid_cache_id is the zone. However, the field is generalized as rapid_cache_id to align the policy lifetime with the cache instance lifetime. This allows for a future transition from zone to a cache id if required.

map<string, .google.storage.control.v2.ManagedFolder.RapidCacheConfig.RapidCachePolicy> policies = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,RapidCachePolicy>
Returns
Type Description
ManagedFolder.RapidCacheConfig.Builder

putPolicies(String key, ManagedFolder.RapidCacheConfig.RapidCachePolicy value)

public ManagedFolder.RapidCacheConfig.Builder putPolicies(String key, ManagedFolder.RapidCacheConfig.RapidCachePolicy value)

Optional. A map of rapid_cache_id to RapidCachePolicy for this prefix. Currently, the key rapid_cache_id is the zone. However, the field is generalized as rapid_cache_id to align the policy lifetime with the cache instance lifetime. This allows for a future transition from zone to a cache id if required.

map<string, .google.storage.control.v2.ManagedFolder.RapidCacheConfig.RapidCachePolicy> policies = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value ManagedFolder.RapidCacheConfig.RapidCachePolicy
Returns
Type Description
ManagedFolder.RapidCacheConfig.Builder

putPoliciesBuilderIfAbsent(String key)

public ManagedFolder.RapidCacheConfig.RapidCachePolicy.Builder putPoliciesBuilderIfAbsent(String key)

Optional. A map of rapid_cache_id to RapidCachePolicy for this prefix. Currently, the key rapid_cache_id is the zone. However, the field is generalized as rapid_cache_id to align the policy lifetime with the cache instance lifetime. This allows for a future transition from zone to a cache id if required.

map<string, .google.storage.control.v2.ManagedFolder.RapidCacheConfig.RapidCachePolicy> policies = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
ManagedFolder.RapidCacheConfig.RapidCachePolicy.Builder

removePolicies(String key)

public ManagedFolder.RapidCacheConfig.Builder removePolicies(String key)

Optional. A map of rapid_cache_id to RapidCachePolicy for this prefix. Currently, the key rapid_cache_id is the zone. However, the field is generalized as rapid_cache_id to align the policy lifetime with the cache instance lifetime. This allows for a future transition from zone to a cache id if required.

map<string, .google.storage.control.v2.ManagedFolder.RapidCacheConfig.RapidCachePolicy> policies = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
ManagedFolder.RapidCacheConfig.Builder