Class UpdateAnywhereCacheMetadata.Builder (2.53.0)

public static final class UpdateAnywhereCacheMetadata.Builder extends GeneratedMessageV3.Builder<UpdateAnywhereCacheMetadata.Builder> implements UpdateAnywhereCacheMetadataOrBuilder

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

Protobuf type google.storage.control.v2.UpdateAnywhereCacheMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateAnywhereCacheMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateAnywhereCacheMetadata.Builder
Overrides

build()

public UpdateAnywhereCacheMetadata build()
Returns
Type Description
UpdateAnywhereCacheMetadata

buildPartial()

public UpdateAnywhereCacheMetadata buildPartial()
Returns
Type Description
UpdateAnywhereCacheMetadata

clear()

public UpdateAnywhereCacheMetadata.Builder clear()
Returns
Type Description
UpdateAnywhereCacheMetadata.Builder
Overrides

clearAdmissionPolicy()

public UpdateAnywhereCacheMetadata.Builder clearAdmissionPolicy()

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
UpdateAnywhereCacheMetadata.Builder

This builder for chaining.

clearAnywhereCacheId()

public UpdateAnywhereCacheMetadata.Builder clearAnywhereCacheId()

Anywhere Cache ID.

optional string anywhere_cache_id = 2;

Returns
Type Description
UpdateAnywhereCacheMetadata.Builder

This builder for chaining.

clearCommonMetadata()

public UpdateAnywhereCacheMetadata.Builder clearCommonMetadata()

Generic metadata for the long running operation.

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

Returns
Type Description
UpdateAnywhereCacheMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

public UpdateAnywhereCacheMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UpdateAnywhereCacheMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateAnywhereCacheMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UpdateAnywhereCacheMetadata.Builder
Overrides

clearTtl()

public UpdateAnywhereCacheMetadata.Builder clearTtl()

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
UpdateAnywhereCacheMetadata.Builder

clearZone()

public UpdateAnywhereCacheMetadata.Builder clearZone()

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

optional string zone = 5;

Returns
Type Description
UpdateAnywhereCacheMetadata.Builder

This builder for chaining.

clone()

public UpdateAnywhereCacheMetadata.Builder clone()
Returns
Type Description
UpdateAnywhereCacheMetadata.Builder
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.

getCommonMetadataBuilder()

public CommonLongRunningOperationMetadata.Builder getCommonMetadataBuilder()

Generic metadata for the long running operation.

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

Returns
Type Description
CommonLongRunningOperationMetadata.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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.

getTtlBuilder()

public Duration.Builder getTtlBuilder()

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
Builder

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCommonMetadata(CommonLongRunningOperationMetadata value)

public UpdateAnywhereCacheMetadata.Builder mergeCommonMetadata(CommonLongRunningOperationMetadata value)

Generic metadata for the long running operation.

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

Parameter
Name Description
value CommonLongRunningOperationMetadata
Returns
Type Description
UpdateAnywhereCacheMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateAnywhereCacheMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateAnywhereCacheMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UpdateAnywhereCacheMetadata.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UpdateAnywhereCacheMetadata.Builder
Overrides

mergeFrom(UpdateAnywhereCacheMetadata other)

public UpdateAnywhereCacheMetadata.Builder mergeFrom(UpdateAnywhereCacheMetadata other)
Parameter
Name Description
other UpdateAnywhereCacheMetadata
Returns
Type Description
UpdateAnywhereCacheMetadata.Builder

mergeTtl(Duration value)

public UpdateAnywhereCacheMetadata.Builder mergeTtl(Duration value)

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;

Parameter
Name Description
value Duration
Returns
Type Description
UpdateAnywhereCacheMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateAnywhereCacheMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateAnywhereCacheMetadata.Builder
Overrides

setAdmissionPolicy(String value)

public UpdateAnywhereCacheMetadata.Builder setAdmissionPolicy(String value)

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;

Parameter
Name Description
value String

The admissionPolicy to set.

Returns
Type Description
UpdateAnywhereCacheMetadata.Builder

This builder for chaining.

setAdmissionPolicyBytes(ByteString value)

public UpdateAnywhereCacheMetadata.Builder setAdmissionPolicyBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for admissionPolicy to set.

Returns
Type Description
UpdateAnywhereCacheMetadata.Builder

This builder for chaining.

setAnywhereCacheId(String value)

public UpdateAnywhereCacheMetadata.Builder setAnywhereCacheId(String value)

Anywhere Cache ID.

optional string anywhere_cache_id = 2;

Parameter
Name Description
value String

The anywhereCacheId to set.

Returns
Type Description
UpdateAnywhereCacheMetadata.Builder

This builder for chaining.

setAnywhereCacheIdBytes(ByteString value)

public UpdateAnywhereCacheMetadata.Builder setAnywhereCacheIdBytes(ByteString value)

Anywhere Cache ID.

optional string anywhere_cache_id = 2;

Parameter
Name Description
value ByteString

The bytes for anywhereCacheId to set.

Returns
Type Description
UpdateAnywhereCacheMetadata.Builder

This builder for chaining.

setCommonMetadata(CommonLongRunningOperationMetadata value)

public UpdateAnywhereCacheMetadata.Builder setCommonMetadata(CommonLongRunningOperationMetadata value)

Generic metadata for the long running operation.

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

Parameter
Name Description
value CommonLongRunningOperationMetadata
Returns
Type Description
UpdateAnywhereCacheMetadata.Builder

setCommonMetadata(CommonLongRunningOperationMetadata.Builder builderForValue)

public UpdateAnywhereCacheMetadata.Builder setCommonMetadata(CommonLongRunningOperationMetadata.Builder builderForValue)

Generic metadata for the long running operation.

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

Parameter
Name Description
builderForValue CommonLongRunningOperationMetadata.Builder
Returns
Type Description
UpdateAnywhereCacheMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateAnywhereCacheMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateAnywhereCacheMetadata.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public UpdateAnywhereCacheMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UpdateAnywhereCacheMetadata.Builder
Overrides

setTtl(Duration value)

public UpdateAnywhereCacheMetadata.Builder setTtl(Duration value)

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;

Parameter
Name Description
value Duration
Returns
Type Description
UpdateAnywhereCacheMetadata.Builder

setTtl(Duration.Builder builderForValue)

public UpdateAnywhereCacheMetadata.Builder setTtl(Duration.Builder builderForValue)

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;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateAnywhereCacheMetadata.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateAnywhereCacheMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateAnywhereCacheMetadata.Builder
Overrides

setZone(String value)

public UpdateAnywhereCacheMetadata.Builder setZone(String value)

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

optional string zone = 5;

Parameter
Name Description
value String

The zone to set.

Returns
Type Description
UpdateAnywhereCacheMetadata.Builder

This builder for chaining.

setZoneBytes(ByteString value)

public UpdateAnywhereCacheMetadata.Builder setZoneBytes(ByteString value)

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

optional string zone = 5;

Parameter
Name Description
value ByteString

The bytes for zone to set.

Returns
Type Description
UpdateAnywhereCacheMetadata.Builder

This builder for chaining.