Class AnywhereCache (2.53.0)

public final class AnywhereCache extends GeneratedMessageV3 implements AnywhereCacheOrBuilder

An Anywhere Cache Instance.

Protobuf type google.storage.control.v2.AnywhereCache

Static Fields

ADMISSION_POLICY_FIELD_NUMBER

public static final int ADMISSION_POLICY_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 AnywhereCache getDefaultInstance()
Returns
Type Description
AnywhereCache

getDescriptor()

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

newBuilder()

public static AnywhereCache.Builder newBuilder()
Returns
Type Description
AnywhereCache.Builder

newBuilder(AnywhereCache prototype)

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

parseDelimitedFrom(InputStream input)

public static AnywhereCache parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AnywhereCache
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static AnywhereCache parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AnywhereCache
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static AnywhereCache parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AnywhereCache
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static AnywhereCache parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AnywhereCache
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static AnywhereCache parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AnywhereCache
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<AnywhereCache> parser()
Returns
Type Description
Parser<AnywhereCache>

Methods

equals(Object obj)

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

getAdmissionPolicy()

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

getDefaultInstanceForType()

public AnywhereCache getDefaultInstanceForType()
Returns
Type Description
AnywhereCache

getName()

public 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 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.

getParserForType()

public Parser<AnywhereCache> getParserForType()
Returns
Type Description
Parser<AnywhereCache>
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 = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The pendingUpdate.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getState()

public 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 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 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 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 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 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 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 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 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 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 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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AnywhereCache.Builder newBuilderForType()
Returns
Type Description
AnywhereCache.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AnywhereCache.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AnywhereCache.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AnywhereCache.Builder toBuilder()
Returns
Type Description
AnywhereCache.Builder

writeTo(CodedOutputStream output)

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