- 2.58.1 (latest)
- 2.58.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.3
- 2.52.3
- 2.50.0
- 2.49.0
- 2.48.2
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.1
- 2.43.2
- 2.42.0
- 2.41.0
- 2.40.1
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.1
- 2.34.0
- 2.33.0
- 2.32.1
- 2.30.1
- 2.29.1
- 2.28.0
- 2.27.1
- 2.24.0
- 2.23.0
- 2.22.6
- 2.21.0
- 2.20.2
- 2.19.0
- 2.18.0
- 2.17.2
- 2.16.0
- 2.15.1
- 2.14.0
- 2.13.1
- 2.12.0
- 2.11.3
- 2.10.0
- 2.9.3
- 2.8.1
- 2.7.1
- 2.6.1
- 2.5.1
- 2.4.5
- 2.3.0
- 2.2.3
- 2.1.10
public static final class CreateAnywhereCacheMetadata.Builder extends GeneratedMessageV3.Builder<CreateAnywhereCacheMetadata.Builder> implements CreateAnywhereCacheMetadataOrBuilderMessage returned in the metadata field of the Operation resource for CreateAnywhereCache operations.
Protobuf type google.storage.control.v2.CreateAnywhereCacheMetadata
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CreateAnywhereCacheMetadata.BuilderImplements
CreateAnywhereCacheMetadataOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateAnywhereCacheMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
CreateAnywhereCacheMetadata.Builder |
|
build()
public CreateAnywhereCacheMetadata build()| Returns | |
|---|---|
| Type | Description |
CreateAnywhereCacheMetadata |
|
buildPartial()
public CreateAnywhereCacheMetadata buildPartial()| Returns | |
|---|---|
| Type | Description |
CreateAnywhereCacheMetadata |
|
clear()
public CreateAnywhereCacheMetadata.Builder clear()| Returns | |
|---|---|
| Type | Description |
CreateAnywhereCacheMetadata.Builder |
|
clearAdmissionPolicy()
public CreateAnywhereCacheMetadata.Builder clearAdmissionPolicy()Anywhere Cache entry Admission Policy in kebab-case (e.g., "admit-on-first-miss"). Default admission policy (admit-on-first-miss) is applied if not specified in the create request.
optional string admission_policy = 5;
| Returns | |
|---|---|
| Type | Description |
CreateAnywhereCacheMetadata.Builder |
This builder for chaining. |
clearAnywhereCacheId()
public CreateAnywhereCacheMetadata.Builder clearAnywhereCacheId()Anywhere Cache ID.
optional string anywhere_cache_id = 2;
| Returns | |
|---|---|
| Type | Description |
CreateAnywhereCacheMetadata.Builder |
This builder for chaining. |
clearCommonMetadata()
public CreateAnywhereCacheMetadata.Builder clearCommonMetadata()Generic metadata for the long running operation.
.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;
| Returns | |
|---|---|
| Type | Description |
CreateAnywhereCacheMetadata.Builder |
|
clearField(Descriptors.FieldDescriptor field)
public CreateAnywhereCacheMetadata.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
CreateAnywhereCacheMetadata.Builder |
|
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateAnywhereCacheMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
CreateAnywhereCacheMetadata.Builder |
|
clearTtl()
public CreateAnywhereCacheMetadata.Builder clearTtl()Anywhere Cache entry's TTL. A cache-level config that is applied to all new cache entries on admission. Default ttl value (24hrs) is applied if not specified in the create request.
optional .google.protobuf.Duration ttl = 3;
| Returns | |
|---|---|
| Type | Description |
CreateAnywhereCacheMetadata.Builder |
|
clearZone()
public CreateAnywhereCacheMetadata.Builder clearZone()The zone in which the cache instance is running. For example, us-central1-a.
optional string zone = 6;
| Returns | |
|---|---|
| Type | Description |
CreateAnywhereCacheMetadata.Builder |
This builder for chaining. |
clone()
public CreateAnywhereCacheMetadata.Builder clone()| Returns | |
|---|---|
| Type | Description |
CreateAnywhereCacheMetadata.Builder |
|
getAdmissionPolicy()
public String getAdmissionPolicy()Anywhere Cache entry Admission Policy in kebab-case (e.g., "admit-on-first-miss"). Default admission policy (admit-on-first-miss) is applied if not specified in the create request.
optional string admission_policy = 5;
| Returns | |
|---|---|
| Type | Description |
String |
The admissionPolicy. |
getAdmissionPolicyBytes()
public ByteString getAdmissionPolicyBytes()Anywhere Cache entry Admission Policy in kebab-case (e.g., "admit-on-first-miss"). Default admission policy (admit-on-first-miss) is applied if not specified in the create request.
optional string admission_policy = 5;
| 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 CreateAnywhereCacheMetadata getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CreateAnywhereCacheMetadata |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getTtl()
public Duration getTtl()Anywhere Cache entry's TTL. A cache-level config that is applied to all new cache entries on admission. Default ttl value (24hrs) is applied if not specified in the create request.
optional .google.protobuf.Duration ttl = 3;
| Returns | |
|---|---|
| Type | Description |
Duration |
The ttl. |
getTtlBuilder()
public Duration.Builder getTtlBuilder()Anywhere Cache entry's TTL. A cache-level config that is applied to all new cache entries on admission. Default ttl value (24hrs) is applied if not specified in the create request.
optional .google.protobuf.Duration ttl = 3;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getTtlOrBuilder()
public DurationOrBuilder getTtlOrBuilder()Anywhere Cache entry's TTL. A cache-level config that is applied to all new cache entries on admission. Default ttl value (24hrs) is applied if not specified in the create 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 = 6;
| 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 = 6;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for zone. |
hasAdmissionPolicy()
public boolean hasAdmissionPolicy()Anywhere Cache entry Admission Policy in kebab-case (e.g., "admit-on-first-miss"). Default admission policy (admit-on-first-miss) is applied if not specified in the create request.
optional string admission_policy = 5;
| 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. A cache-level config that is applied to all new cache entries on admission. Default ttl value (24hrs) is applied if not specified in the create 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 = 6;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the zone field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCommonMetadata(CommonLongRunningOperationMetadata value)
public CreateAnywhereCacheMetadata.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 |
CreateAnywhereCacheMetadata.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateAnywhereCacheMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CreateAnywhereCacheMetadata.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CreateAnywhereCacheMetadata.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CreateAnywhereCacheMetadata.Builder |
|
mergeFrom(CreateAnywhereCacheMetadata other)
public CreateAnywhereCacheMetadata.Builder mergeFrom(CreateAnywhereCacheMetadata other)| Parameter | |
|---|---|
| Name | Description |
other |
CreateAnywhereCacheMetadata |
| Returns | |
|---|---|
| Type | Description |
CreateAnywhereCacheMetadata.Builder |
|
mergeTtl(Duration value)
public CreateAnywhereCacheMetadata.Builder mergeTtl(Duration value)Anywhere Cache entry's TTL. A cache-level config that is applied to all new cache entries on admission. Default ttl value (24hrs) is applied if not specified in the create request.
optional .google.protobuf.Duration ttl = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
CreateAnywhereCacheMetadata.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateAnywhereCacheMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
CreateAnywhereCacheMetadata.Builder |
|
setAdmissionPolicy(String value)
public CreateAnywhereCacheMetadata.Builder setAdmissionPolicy(String value)Anywhere Cache entry Admission Policy in kebab-case (e.g., "admit-on-first-miss"). Default admission policy (admit-on-first-miss) is applied if not specified in the create request.
optional string admission_policy = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe admissionPolicy to set. |
| Returns | |
|---|---|
| Type | Description |
CreateAnywhereCacheMetadata.Builder |
This builder for chaining. |
setAdmissionPolicyBytes(ByteString value)
public CreateAnywhereCacheMetadata.Builder setAdmissionPolicyBytes(ByteString value)Anywhere Cache entry Admission Policy in kebab-case (e.g., "admit-on-first-miss"). Default admission policy (admit-on-first-miss) is applied if not specified in the create request.
optional string admission_policy = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for admissionPolicy to set. |
| Returns | |
|---|---|
| Type | Description |
CreateAnywhereCacheMetadata.Builder |
This builder for chaining. |
setAnywhereCacheId(String value)
public CreateAnywhereCacheMetadata.Builder setAnywhereCacheId(String value)Anywhere Cache ID.
optional string anywhere_cache_id = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe anywhereCacheId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateAnywhereCacheMetadata.Builder |
This builder for chaining. |
setAnywhereCacheIdBytes(ByteString value)
public CreateAnywhereCacheMetadata.Builder setAnywhereCacheIdBytes(ByteString value)Anywhere Cache ID.
optional string anywhere_cache_id = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for anywhereCacheId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateAnywhereCacheMetadata.Builder |
This builder for chaining. |
setCommonMetadata(CommonLongRunningOperationMetadata value)
public CreateAnywhereCacheMetadata.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 |
CreateAnywhereCacheMetadata.Builder |
|
setCommonMetadata(CommonLongRunningOperationMetadata.Builder builderForValue)
public CreateAnywhereCacheMetadata.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 |
CreateAnywhereCacheMetadata.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public CreateAnywhereCacheMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
CreateAnywhereCacheMetadata.Builder |
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateAnywhereCacheMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
CreateAnywhereCacheMetadata.Builder |
|
setTtl(Duration value)
public CreateAnywhereCacheMetadata.Builder setTtl(Duration value)Anywhere Cache entry's TTL. A cache-level config that is applied to all new cache entries on admission. Default ttl value (24hrs) is applied if not specified in the create request.
optional .google.protobuf.Duration ttl = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
CreateAnywhereCacheMetadata.Builder |
|
setTtl(Duration.Builder builderForValue)
public CreateAnywhereCacheMetadata.Builder setTtl(Duration.Builder builderForValue)Anywhere Cache entry's TTL. A cache-level config that is applied to all new cache entries on admission. Default ttl value (24hrs) is applied if not specified in the create request.
optional .google.protobuf.Duration ttl = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
CreateAnywhereCacheMetadata.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateAnywhereCacheMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
CreateAnywhereCacheMetadata.Builder |
|
setZone(String value)
public CreateAnywhereCacheMetadata.Builder setZone(String value)The zone in which the cache instance is running. For example, us-central1-a.
optional string zone = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe zone to set. |
| Returns | |
|---|---|
| Type | Description |
CreateAnywhereCacheMetadata.Builder |
This builder for chaining. |
setZoneBytes(ByteString value)
public CreateAnywhereCacheMetadata.Builder setZoneBytes(ByteString value)The zone in which the cache instance is running. For example, us-central1-a.
optional string zone = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for zone to set. |
| Returns | |
|---|---|
| Type | Description |
CreateAnywhereCacheMetadata.Builder |
This builder for chaining. |