public final class RapidCache extends GeneratedMessage implements RapidCacheOrBuilder
A Rapid Cache Instance.
Protobuf type google.storage.control.v2.RapidCache
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
ADMISSION_POLICY_FIELD_NUMBER
public static final int ADMISSION_POLICY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
CACHE_TYPE_FIELD_NUMBER
public static final int CACHE_TYPE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PENDING_UPDATE_FIELD_NUMBER
public static final int PENDING_UPDATE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
TTL_FIELD_NUMBER
public static final int TTL_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ZONE_FIELD_NUMBER
public static final int ZONE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static RapidCache getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static RapidCache.Builder newBuilder()
newBuilder(RapidCache prototype)
public static RapidCache.Builder newBuilder(RapidCache prototype)
public static RapidCache parseDelimitedFrom(InputStream input)
public static RapidCache parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static RapidCache parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RapidCache parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static RapidCache parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RapidCache parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RapidCache parseFrom(CodedInputStream input)
public static RapidCache parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static RapidCache parseFrom(InputStream input)
public static RapidCache parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static RapidCache parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RapidCache parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<RapidCache> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getAdmissionPolicy()
public String getAdmissionPolicy()
Cache admission policy. Valid policies includes:
no_read_admission, admit-on-first-miss and admit-on-second-miss. Defaults
to admit-on-first-miss for both AC and RCU. Default value is applied if not
specified in the create request.
string admission_policy = 5;
| Returns |
| Type |
Description |
String |
The admissionPolicy.
|
getAdmissionPolicyBytes()
public ByteString getAdmissionPolicyBytes()
Cache admission policy. Valid policies includes:
no_read_admission, admit-on-first-miss and admit-on-second-miss. Defaults
to admit-on-first-miss for both AC and RCU. Default value is applied if not
specified in the create request.
string admission_policy = 5;
| Returns |
| Type |
Description |
ByteString |
The bytes for admissionPolicy.
|
getCacheType()
public String getCacheType()
Immutable. The type of Rapid Cache this represents. Valid values include:
'rapid-cache' and 'rapid-cache-ultra'.
string cache_type = 3 [(.google.api.field_behavior) = IMMUTABLE];
| Returns |
| Type |
Description |
String |
The cacheType.
|
getCacheTypeBytes()
public ByteString getCacheTypeBytes()
Immutable. The type of Rapid Cache this represents. Valid values include:
'rapid-cache' and 'rapid-cache-ultra'.
string cache_type = 3 [(.google.api.field_behavior) = IMMUTABLE];
| Returns |
| Type |
Description |
ByteString |
The bytes for cacheType.
|
getCreateTime()
public Timestamp getCreateTime()
Output only. Time when Rapid cache instance is allocated.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
Timestamp |
The createTime.
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Time when Rapid cache instance is allocated.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDefaultInstanceForType()
public RapidCache getDefaultInstanceForType()
getName()
Immutable. The resource name of this RapidCache.
Format:
projects/{project}/buckets/{bucket}/rapidCaches/{rapid_cache}
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
| Returns |
| Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
Immutable. The resource name of this RapidCache.
Format:
projects/{project}/buckets/{bucket}/rapidCaches/{rapid_cache}
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
| Returns |
| Type |
Description |
ByteString |
The bytes for name.
|
getParserForType()
public Parser<RapidCache> getParserForType()
Overrides
getPendingUpdate()
public boolean getPendingUpdate()
Output only. True if there is an active update operation against this cache
instance. Subsequential update requests will be rejected if this field is
true. Output only.
bool pending_update = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
The pendingUpdate.
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getState()
Output only. Cache state including running, creating, and disabled.
string state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
String |
The state.
|
getStateBytes()
public ByteString getStateBytes()
Output only. Cache state including running, creating, and disabled.
string state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
ByteString |
The bytes for state.
|
getTtl()
Cache entry TTL (ranges between 1h to 7d). This is a cache-level config
that defines how long a cache entry can live. Default ttl value (24hrs)
is applied if not specified in the create request. TTL must be in whole
seconds.
.google.protobuf.Duration ttl = 4;
| Returns |
| Type |
Description |
Duration |
The ttl.
|
getTtlOrBuilder()
public DurationOrBuilder getTtlOrBuilder()
Cache entry TTL (ranges between 1h to 7d). This is a cache-level config
that defines how long a cache entry can live. Default ttl value (24hrs)
is applied if not specified in the create request. TTL must be in whole
seconds.
.google.protobuf.Duration ttl = 4;
getUpdateTime()
public Timestamp getUpdateTime()
Output only. Time when Rapid cache instance is last updated, including
creation.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
Timestamp |
The updateTime.
|
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. Time when Rapid cache instance is last updated, including
creation.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getZone()
Immutable. The zone in which the cache instance is running. For example,
us-central1-a.
string zone = 2 [(.google.api.field_behavior) = IMMUTABLE];
| Returns |
| Type |
Description |
String |
The zone.
|
getZoneBytes()
public ByteString getZoneBytes()
Immutable. The zone in which the cache instance is running. For example,
us-central1-a.
string zone = 2 [(.google.api.field_behavior) = IMMUTABLE];
| Returns |
| Type |
Description |
ByteString |
The bytes for zone.
|
hasCreateTime()
public boolean hasCreateTime()
Output only. Time when Rapid cache instance is allocated.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the createTime field is set.
|
hasTtl()
Cache entry TTL (ranges between 1h to 7d). This is a cache-level config
that defines how long a cache entry can live. Default ttl value (24hrs)
is applied if not specified in the create request. TTL must be in whole
seconds.
.google.protobuf.Duration ttl = 4;
| Returns |
| Type |
Description |
boolean |
Whether the ttl field is set.
|
hasUpdateTime()
public boolean hasUpdateTime()
Output only. Time when Rapid cache instance is last updated, including
creation.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the updateTime field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public RapidCache.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected RapidCache.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public RapidCache.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides