Class ManagedFolder.RapidCacheConfig (2.71.0)

public static final class ManagedFolder.RapidCacheConfig extends GeneratedMessage 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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > ManagedFolder.RapidCacheConfig

Static Fields

POLICIES_FIELD_NUMBER

public static final int POLICIES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ManagedFolder.RapidCacheConfig getDefaultInstance()
Returns
Type Description
ManagedFolder.RapidCacheConfig

getDescriptor()

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

newBuilder()

public static ManagedFolder.RapidCacheConfig.Builder newBuilder()
Returns
Type Description
ManagedFolder.RapidCacheConfig.Builder

newBuilder(ManagedFolder.RapidCacheConfig prototype)

public static ManagedFolder.RapidCacheConfig.Builder newBuilder(ManagedFolder.RapidCacheConfig prototype)
Parameter
Name Description
prototype ManagedFolder.RapidCacheConfig
Returns
Type Description
ManagedFolder.RapidCacheConfig.Builder

parseDelimitedFrom(InputStream input)

public static ManagedFolder.RapidCacheConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ManagedFolder.RapidCacheConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ManagedFolder.RapidCacheConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ManagedFolder.RapidCacheConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ManagedFolder.RapidCacheConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ManagedFolder.RapidCacheConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ManagedFolder.RapidCacheConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ManagedFolder.RapidCacheConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ManagedFolder.RapidCacheConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ManagedFolder.RapidCacheConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ManagedFolder.RapidCacheConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ManagedFolder.RapidCacheConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ManagedFolder.RapidCacheConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ManagedFolder.RapidCacheConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ManagedFolder.RapidCacheConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ManagedFolder.RapidCacheConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ManagedFolder.RapidCacheConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ManagedFolder.RapidCacheConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ManagedFolder.RapidCacheConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ManagedFolder.RapidCacheConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ManagedFolder.RapidCacheConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ManagedFolder.RapidCacheConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ManagedFolder.RapidCacheConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ManagedFolder.RapidCacheConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ManagedFolder.RapidCacheConfig> parser()
Returns
Type Description
Parser<RapidCacheConfig>

Methods

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

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

getParserForType()

public Parser<ManagedFolder.RapidCacheConfig> getParserForType()
Returns
Type Description
Parser<RapidCacheConfig>
Overrides

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

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.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ManagedFolder.RapidCacheConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ManagedFolder.RapidCacheConfig.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException