Interface AnywhereCacheOrBuilder (2.53.0)

public interface AnywhereCacheOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAdmissionPolicy()

public abstract 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
Type Description
String

The admissionPolicy.

getAdmissionPolicyBytes()

public abstract 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
Type Description
ByteString

The bytes for admissionPolicy.

getCreateTime()

public abstract Timestamp getCreateTime()

Output only. Time when Anywhere cache instance is allocated.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time when Anywhere cache instance is allocated.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getName()

public abstract 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
Type Description
String

The name.

getNameBytes()

public abstract 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
Type Description
ByteString

The bytes for name.

getPendingUpdate()

public abstract 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
Type Description
boolean

The pendingUpdate.

getState()

public abstract String getState()

Output only. Cache state including RUNNING, CREATING, DISABLED and PAUSED.

string state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The state.

getStateBytes()

public abstract ByteString getStateBytes()

Output only. Cache state including RUNNING, CREATING, DISABLED and PAUSED.

string state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for state.

getTtl()

public abstract 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
Type Description
Duration

The ttl.

getTtlOrBuilder()

public abstract 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;

Returns
Type Description
DurationOrBuilder

getUpdateTime()

public abstract 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
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public abstract 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];

Returns
Type Description
TimestampOrBuilder

getZone()

public abstract 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
Type Description
String

The zone.

getZoneBytes()

public abstract 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
Type Description
ByteString

The bytes for zone.

hasCreateTime()

public abstract boolean hasCreateTime()

Output only. Time when Anywhere cache instance is allocated.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasTtl()

public abstract 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
Type Description
boolean

Whether the ttl field is set.

hasUpdateTime()

public abstract 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
Type Description
boolean

Whether the updateTime field is set.