Package com.google.storage.control.v2
Class UpdateAnywhereCacheMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<UpdateAnywhereCacheMetadata.Builder>
com.google.storage.control.v2.UpdateAnywhereCacheMetadata.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,UpdateAnywhereCacheMetadataOrBuilder,Cloneable
- Enclosing class:
- UpdateAnywhereCacheMetadata
public static final class UpdateAnywhereCacheMetadata.Builder
extends com.google.protobuf.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-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()L4 Cache entry Admission Policy in kebab-case (e.g., "admit-on-first-miss").Anywhere Cache ID.Generic metadata for the long running operation.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clearTtl()Anywhere Cache entry's TTL between 1h and 7days.The zone in which the cache instance is running.clone()L4 Cache entry Admission Policy in kebab-case (e.g., "admit-on-first-miss").com.google.protobuf.ByteStringL4 Cache entry Admission Policy in kebab-case (e.g., "admit-on-first-miss").Anywhere Cache ID.com.google.protobuf.ByteStringAnywhere Cache ID.Generic metadata for the long running operation.Generic metadata for the long running operation.Generic metadata for the long running operation.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.DurationgetTtl()Anywhere Cache entry's TTL between 1h and 7days.com.google.protobuf.Duration.BuilderAnywhere Cache entry's TTL between 1h and 7days.com.google.protobuf.DurationOrBuilderAnywhere Cache entry's TTL between 1h and 7days.getZone()The zone in which the cache instance is running.com.google.protobuf.ByteStringThe zone in which the cache instance is running.booleanL4 Cache entry Admission Policy in kebab-case (e.g., "admit-on-first-miss").booleanAnywhere Cache ID.booleanGeneric metadata for the long running operation.booleanhasTtl()Anywhere Cache entry's TTL between 1h and 7days.booleanhasZone()The zone in which the cache instance is running.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanGeneric metadata for the long running operation.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeTtl(com.google.protobuf.Duration value) Anywhere Cache entry's TTL between 1h and 7days.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setAdmissionPolicy(String value) L4 Cache entry Admission Policy in kebab-case (e.g., "admit-on-first-miss").setAdmissionPolicyBytes(com.google.protobuf.ByteString value) L4 Cache entry Admission Policy in kebab-case (e.g., "admit-on-first-miss").setAnywhereCacheId(String value) Anywhere Cache ID.setAnywhereCacheIdBytes(com.google.protobuf.ByteString value) Anywhere Cache ID.Generic metadata for the long running operation.setCommonMetadata(CommonLongRunningOperationMetadata.Builder builderForValue) Generic metadata for the long running operation.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTtl(com.google.protobuf.Duration value) Anywhere Cache entry's TTL between 1h and 7days.setTtl(com.google.protobuf.Duration.Builder builderForValue) Anywhere Cache entry's TTL between 1h and 7days.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) The zone in which the cache instance is running.setZoneBytes(com.google.protobuf.ByteString value) The zone in which the cache instance is running.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateAnywhereCacheMetadata.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateAnywhereCacheMetadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateAnywhereCacheMetadata.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateAnywhereCacheMetadata.Builder>
-
setField
public UpdateAnywhereCacheMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateAnywhereCacheMetadata.Builder>
-
clearField
public UpdateAnywhereCacheMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateAnywhereCacheMetadata.Builder>
-
clearOneof
public UpdateAnywhereCacheMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateAnywhereCacheMetadata.Builder>
-
setRepeatedField
public UpdateAnywhereCacheMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateAnywhereCacheMetadata.Builder>
-
addRepeatedField
public UpdateAnywhereCacheMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateAnywhereCacheMetadata.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UpdateAnywhereCacheMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateAnywhereCacheMetadata.Builder>
-
mergeFrom
public UpdateAnywhereCacheMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UpdateAnywhereCacheMetadata.Builder>- Throws:
IOException
-
hasCommonMetadata
public boolean hasCommonMetadata()Generic metadata for the long running operation.
.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;- Specified by:
hasCommonMetadatain interfaceUpdateAnywhereCacheMetadataOrBuilder- Returns:
- Whether the commonMetadata field is set.
-
getCommonMetadata
Generic metadata for the long running operation.
.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;- Specified by:
getCommonMetadatain interfaceUpdateAnywhereCacheMetadataOrBuilder- Returns:
- The commonMetadata.
-
setCommonMetadata
public UpdateAnywhereCacheMetadata.Builder setCommonMetadata(CommonLongRunningOperationMetadata value) Generic metadata for the long running operation.
.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; -
setCommonMetadata
public UpdateAnywhereCacheMetadata.Builder setCommonMetadata(CommonLongRunningOperationMetadata.Builder builderForValue) Generic metadata for the long running operation.
.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; -
mergeCommonMetadata
public UpdateAnywhereCacheMetadata.Builder mergeCommonMetadata(CommonLongRunningOperationMetadata value) Generic metadata for the long running operation.
.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; -
clearCommonMetadata
Generic metadata for the long running operation.
.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; -
getCommonMetadataBuilder
Generic metadata for the long running operation.
.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; -
getCommonMetadataOrBuilder
Generic metadata for the long running operation.
.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;- Specified by:
getCommonMetadataOrBuilderin interfaceUpdateAnywhereCacheMetadataOrBuilder
-
hasAnywhereCacheId
public boolean hasAnywhereCacheId()Anywhere Cache ID.
optional string anywhere_cache_id = 2;- Specified by:
hasAnywhereCacheIdin interfaceUpdateAnywhereCacheMetadataOrBuilder- Returns:
- Whether the anywhereCacheId field is set.
-
getAnywhereCacheId
Anywhere Cache ID.
optional string anywhere_cache_id = 2;- Specified by:
getAnywhereCacheIdin interfaceUpdateAnywhereCacheMetadataOrBuilder- Returns:
- The anywhereCacheId.
-
getAnywhereCacheIdBytes
public com.google.protobuf.ByteString getAnywhereCacheIdBytes()Anywhere Cache ID.
optional string anywhere_cache_id = 2;- Specified by:
getAnywhereCacheIdBytesin interfaceUpdateAnywhereCacheMetadataOrBuilder- Returns:
- The bytes for anywhereCacheId.
-
setAnywhereCacheId
Anywhere Cache ID.
optional string anywhere_cache_id = 2;- Parameters:
value- The anywhereCacheId to set.- Returns:
- This builder for chaining.
-
clearAnywhereCacheId
Anywhere Cache ID.
optional string anywhere_cache_id = 2;- Returns:
- This builder for chaining.
-
setAnywhereCacheIdBytes
public UpdateAnywhereCacheMetadata.Builder setAnywhereCacheIdBytes(com.google.protobuf.ByteString value) Anywhere Cache ID.
optional string anywhere_cache_id = 2;- Parameters:
value- The bytes for anywhereCacheId to set.- Returns:
- This builder for chaining.
-
hasZone
public boolean hasZone()The zone in which the cache instance is running. For example, us-central1-a.
optional string zone = 5;- Specified by:
hasZonein interfaceUpdateAnywhereCacheMetadataOrBuilder- Returns:
- Whether the zone field is set.
-
getZone
The zone in which the cache instance is running. For example, us-central1-a.
optional string zone = 5;- Specified by:
getZonein interfaceUpdateAnywhereCacheMetadataOrBuilder- Returns:
- The zone.
-
getZoneBytes
public com.google.protobuf.ByteString getZoneBytes()The zone in which the cache instance is running. For example, us-central1-a.
optional string zone = 5;- Specified by:
getZoneBytesin interfaceUpdateAnywhereCacheMetadataOrBuilder- Returns:
- The bytes for zone.
-
setZone
The zone in which the cache instance is running. For example, us-central1-a.
optional string zone = 5;- Parameters:
value- The zone to set.- Returns:
- This builder for chaining.
-
clearZone
The zone in which the cache instance is running. For example, us-central1-a.
optional string zone = 5;- Returns:
- This builder for chaining.
-
setZoneBytes
The zone in which the cache instance is running. For example, us-central1-a.
optional string zone = 5;- Parameters:
value- The bytes for zone to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasTtlin interfaceUpdateAnywhereCacheMetadataOrBuilder- Returns:
- Whether the ttl field is set.
-
getTtl
public com.google.protobuf.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;- Specified by:
getTtlin interfaceUpdateAnywhereCacheMetadataOrBuilder- Returns:
- The ttl.
-
setTtl
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; -
setTtl
public UpdateAnywhereCacheMetadata.Builder setTtl(com.google.protobuf.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; -
mergeTtl
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; -
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; -
getTtlBuilder
public com.google.protobuf.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; -
getTtlOrBuilder
public com.google.protobuf.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;- Specified by:
getTtlOrBuilderin interfaceUpdateAnywhereCacheMetadataOrBuilder
-
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;- Specified by:
hasAdmissionPolicyin interfaceUpdateAnywhereCacheMetadataOrBuilder- Returns:
- Whether the admissionPolicy field is set.
-
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;- Specified by:
getAdmissionPolicyin interfaceUpdateAnywhereCacheMetadataOrBuilder- Returns:
- The admissionPolicy.
-
getAdmissionPolicyBytes
public com.google.protobuf.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;- Specified by:
getAdmissionPolicyBytesin interfaceUpdateAnywhereCacheMetadataOrBuilder- Returns:
- The bytes for admissionPolicy.
-
setAdmissionPolicy
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;- Parameters:
value- The admissionPolicy to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setAdmissionPolicyBytes
public UpdateAnywhereCacheMetadata.Builder setAdmissionPolicyBytes(com.google.protobuf.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;- Parameters:
value- The bytes for admissionPolicy to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final UpdateAnywhereCacheMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateAnywhereCacheMetadata.Builder>
-
mergeUnknownFields
public final UpdateAnywhereCacheMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateAnywhereCacheMetadata.Builder>
-