Class UpdateAnywhereCacheMetadata (2.53.0)

public final class UpdateAnywhereCacheMetadata extends GeneratedMessageV3 implements UpdateAnywhereCacheMetadataOrBuilder

Message returned in the metadata field of the Operation resource for UpdateAnywhereCache operation.

Protobuf type google.storage.control.v2.UpdateAnywhereCacheMetadata

Static Fields

ADMISSION_POLICY_FIELD_NUMBER

public static final int ADMISSION_POLICY_FIELD_NUMBER
Field Value
Type Description
int

ANYWHERE_CACHE_ID_FIELD_NUMBER

public static final int ANYWHERE_CACHE_ID_FIELD_NUMBER
Field Value
Type Description
int

COMMON_METADATA_FIELD_NUMBER

public static final int COMMON_METADATA_FIELD_NUMBER
Field Value
Type Description
int

TTL_FIELD_NUMBER

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

getDescriptor()

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

newBuilder()

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

newBuilder(UpdateAnywhereCacheMetadata prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAdmissionPolicy()

public String getAdmissionPolicy()

L4 Cache entry Admission Policy in kebab-case (e.g., "admit-on-first-miss"). If admission_policy is pending update, this field equals to the new value specified in the Update request.

optional string admission_policy = 4;

Returns
Type Description
String

The admissionPolicy.

getAdmissionPolicyBytes()

public ByteString getAdmissionPolicyBytes()

L4 Cache entry Admission Policy in kebab-case (e.g., "admit-on-first-miss"). If admission_policy is pending update, this field equals to the new value specified in the Update request.

optional string admission_policy = 4;

Returns
Type Description
ByteString

The bytes for admissionPolicy.

getAnywhereCacheId()

public String getAnywhereCacheId()

Anywhere Cache ID.

optional string anywhere_cache_id = 2;

Returns
Type Description
String

The anywhereCacheId.

getAnywhereCacheIdBytes()

public ByteString getAnywhereCacheIdBytes()

Anywhere Cache ID.

optional string anywhere_cache_id = 2;

Returns
Type Description
ByteString

The bytes for anywhereCacheId.

getCommonMetadata()

public CommonLongRunningOperationMetadata getCommonMetadata()

Generic metadata for the long running operation.

.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;

Returns
Type Description
CommonLongRunningOperationMetadata

The commonMetadata.

getCommonMetadataOrBuilder()

public CommonLongRunningOperationMetadataOrBuilder getCommonMetadataOrBuilder()

Generic metadata for the long running operation.

.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;

Returns
Type Description
CommonLongRunningOperationMetadataOrBuilder

getDefaultInstanceForType()

public UpdateAnywhereCacheMetadata getDefaultInstanceForType()
Returns
Type Description
UpdateAnywhereCacheMetadata

getParserForType()

public Parser<UpdateAnywhereCacheMetadata> getParserForType()
Returns
Type Description
Parser<UpdateAnywhereCacheMetadata>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTtl()

public Duration getTtl()

Anywhere Cache entry's TTL between 1h and 7days. A cache-level config that is applied to all new cache entries on admission. If ttl is pending update, this field equals to the new value specified in the Update request.

optional .google.protobuf.Duration ttl = 3;

Returns
Type Description
Duration

The ttl.

getTtlOrBuilder()

public DurationOrBuilder getTtlOrBuilder()

Anywhere Cache entry's TTL between 1h and 7days. A cache-level config that is applied to all new cache entries on admission. If ttl is pending update, this field equals to the new value specified in the Update request.

optional .google.protobuf.Duration ttl = 3;

Returns
Type Description
DurationOrBuilder

getZone()

public String getZone()

The zone in which the cache instance is running. For example, us-central1-a.

optional string zone = 5;

Returns
Type Description
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

The zone in which the cache instance is running. For example, us-central1-a.

optional string zone = 5;

Returns
Type Description
ByteString

The bytes for zone.

hasAdmissionPolicy()

public boolean hasAdmissionPolicy()

L4 Cache entry Admission Policy in kebab-case (e.g., "admit-on-first-miss"). If admission_policy is pending update, this field equals to the new value specified in the Update request.

optional string admission_policy = 4;

Returns
Type Description
boolean

Whether the admissionPolicy field is set.

hasAnywhereCacheId()

public boolean hasAnywhereCacheId()

Anywhere Cache ID.

optional string anywhere_cache_id = 2;

Returns
Type Description
boolean

Whether the anywhereCacheId field is set.

hasCommonMetadata()

public boolean hasCommonMetadata()

Generic metadata for the long running operation.

.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;

Returns
Type Description
boolean

Whether the commonMetadata field is set.

hasTtl()

public boolean hasTtl()

Anywhere Cache entry's TTL between 1h and 7days. A cache-level config that is applied to all new cache entries on admission. If ttl is pending update, this field equals to the new value specified in the Update request.

optional .google.protobuf.Duration ttl = 3;

Returns
Type Description
boolean

Whether the ttl field is set.

hasZone()

public boolean hasZone()

The zone in which the cache instance is running. For example, us-central1-a.

optional string zone = 5;

Returns
Type Description
boolean

Whether the zone 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 UpdateAnywhereCacheMetadata.Builder newBuilderForType()
Returns
Type Description
UpdateAnywhereCacheMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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