Package com.google.storage.control.v2
Interface AnywhereCacheOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
AnywhereCache,AnywhereCache.Builder
public interface AnywhereCacheOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionCache admission policy.com.google.protobuf.ByteStringCache admission policy.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.getName()Immutable.com.google.protobuf.ByteStringImmutable.booleanOutput only.getState()Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.DurationgetTtl()Cache entry TTL (ranges between 1h to 7d).com.google.protobuf.DurationOrBuilderCache entry TTL (ranges between 1h to 7d).com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.getZone()Immutable.com.google.protobuf.ByteStringImmutable.booleanOutput only.booleanhasTtl()Cache entry TTL (ranges between 1h to 7d).booleanOutput only.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
String getName()Immutable. The resource name of this AnywhereCache. Format: `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}`string name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()Immutable. The resource name of this AnywhereCache. Format: `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}`string name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- The bytes for name.
-
getZone
String getZone()Immutable. The zone in which the cache instance is running. For example, us-central1-a.
string zone = 10 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- The zone.
-
getZoneBytes
com.google.protobuf.ByteString getZoneBytes()Immutable. The zone in which the cache instance is running. For example, us-central1-a.
string zone = 10 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- The bytes for zone.
-
hasTtl
boolean 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 = 3;- Returns:
- Whether the ttl field is set.
-
getTtl
com.google.protobuf.Duration 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 = 3;- Returns:
- The ttl.
-
getTtlOrBuilder
com.google.protobuf.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 = 3; -
getAdmissionPolicy
String getAdmissionPolicy()Cache admission policy. Valid policies includes: `admit-on-first-miss` and `admit-on-second-miss`. Defaults to `admit-on-first-miss`. Default value is applied if not specified in the create request.
string admission_policy = 9;- Returns:
- The admissionPolicy.
-
getAdmissionPolicyBytes
com.google.protobuf.ByteString getAdmissionPolicyBytes()Cache admission policy. Valid policies includes: `admit-on-first-miss` and `admit-on-second-miss`. Defaults to `admit-on-first-miss`. Default value is applied if not specified in the create request.
string admission_policy = 9;- Returns:
- The bytes for admissionPolicy.
-
getState
String getState()Output only. Cache state including RUNNING, CREATING, DISABLED and PAUSED.
string state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The state.
-
getStateBytes
com.google.protobuf.ByteString getStateBytes()Output only. Cache state including RUNNING, CREATING, DISABLED and PAUSED.
string state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The bytes for state.
-
hasCreateTime
boolean hasCreateTime()Output only. Time when Anywhere cache instance is allocated.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the createTime field is set.
-
getCreateTime
com.google.protobuf.Timestamp getCreateTime()Output only. Time when Anywhere cache instance is allocated.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The createTime.
-
getCreateTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. Time when Anywhere cache instance is allocated.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
hasUpdateTime
boolean hasUpdateTime()Output only. Time when Anywhere cache instance is last updated, including creation.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
com.google.protobuf.Timestamp getUpdateTime()Output only. Time when Anywhere cache instance is last updated, including creation.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. Time when Anywhere cache instance is last updated, including creation.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getPendingUpdate
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 = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The pendingUpdate.
-