Package com.google.storage.control.v2
Class CreateAnywhereCacheMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CreateAnywhereCacheMetadata.Builder>
com.google.storage.control.v2.CreateAnywhereCacheMetadata.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CreateAnywhereCacheMetadataOrBuilder,Cloneable
- Enclosing class:
- CreateAnywhereCacheMetadata
public static final class CreateAnywhereCacheMetadata.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<CreateAnywhereCacheMetadata.Builder>
implements CreateAnywhereCacheMetadataOrBuilder
Message returned in the metadata field of the Operation resource for CreateAnywhereCache operations.Protobuf type
google.storage.control.v2.CreateAnywhereCacheMetadata-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Anywhere 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.The zone in which the cache instance is running.clone()Anywhere Cache entry Admission Policy in kebab-case (e.g., "admit-on-first-miss").com.google.protobuf.ByteStringAnywhere 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.com.google.protobuf.Duration.BuilderAnywhere Cache entry's TTL.com.google.protobuf.DurationOrBuilderAnywhere Cache entry's TTL.getZone()The zone in which the cache instance is running.com.google.protobuf.ByteStringThe zone in which the cache instance is running.booleanAnywhere 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.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.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setAdmissionPolicy(String value) Anywhere Cache entry Admission Policy in kebab-case (e.g., "admit-on-first-miss").setAdmissionPolicyBytes(com.google.protobuf.ByteString value) Anywhere 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.setTtl(com.google.protobuf.Duration.Builder builderForValue) Anywhere Cache entry's TTL.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<CreateAnywhereCacheMetadata.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<CreateAnywhereCacheMetadata.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<CreateAnywhereCacheMetadata.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<CreateAnywhereCacheMetadata.Builder>
-
setField
public CreateAnywhereCacheMetadata.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<CreateAnywhereCacheMetadata.Builder>
-
clearField
public CreateAnywhereCacheMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateAnywhereCacheMetadata.Builder>
-
clearOneof
public CreateAnywhereCacheMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateAnywhereCacheMetadata.Builder>
-
setRepeatedField
public CreateAnywhereCacheMetadata.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<CreateAnywhereCacheMetadata.Builder>
-
addRepeatedField
public CreateAnywhereCacheMetadata.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<CreateAnywhereCacheMetadata.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CreateAnywhereCacheMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateAnywhereCacheMetadata.Builder>
-
mergeFrom
public CreateAnywhereCacheMetadata.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<CreateAnywhereCacheMetadata.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 interfaceCreateAnywhereCacheMetadataOrBuilder- 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 interfaceCreateAnywhereCacheMetadataOrBuilder- Returns:
- The commonMetadata.
-
setCommonMetadata
public CreateAnywhereCacheMetadata.Builder setCommonMetadata(CommonLongRunningOperationMetadata value) Generic metadata for the long running operation.
.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; -
setCommonMetadata
public CreateAnywhereCacheMetadata.Builder setCommonMetadata(CommonLongRunningOperationMetadata.Builder builderForValue) Generic metadata for the long running operation.
.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; -
mergeCommonMetadata
public CreateAnywhereCacheMetadata.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 interfaceCreateAnywhereCacheMetadataOrBuilder
-
hasAnywhereCacheId
public boolean hasAnywhereCacheId()Anywhere Cache ID.
optional string anywhere_cache_id = 2;- Specified by:
hasAnywhereCacheIdin interfaceCreateAnywhereCacheMetadataOrBuilder- Returns:
- Whether the anywhereCacheId field is set.
-
getAnywhereCacheId
Anywhere Cache ID.
optional string anywhere_cache_id = 2;- Specified by:
getAnywhereCacheIdin interfaceCreateAnywhereCacheMetadataOrBuilder- Returns:
- The anywhereCacheId.
-
getAnywhereCacheIdBytes
public com.google.protobuf.ByteString getAnywhereCacheIdBytes()Anywhere Cache ID.
optional string anywhere_cache_id = 2;- Specified by:
getAnywhereCacheIdBytesin interfaceCreateAnywhereCacheMetadataOrBuilder- 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 CreateAnywhereCacheMetadata.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 = 6;- Specified by:
hasZonein interfaceCreateAnywhereCacheMetadataOrBuilder- 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 = 6;- Specified by:
getZonein interfaceCreateAnywhereCacheMetadataOrBuilder- 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 = 6;- Specified by:
getZoneBytesin interfaceCreateAnywhereCacheMetadataOrBuilder- Returns:
- The bytes for zone.
-
setZone
The zone in which the cache instance is running. For example, us-central1-a.
optional string zone = 6;- 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 = 6;- Returns:
- This builder for chaining.
-
setZoneBytes
The zone in which the cache instance is running. For example, us-central1-a.
optional string zone = 6;- Parameters:
value- The bytes for zone to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasTtlin interfaceCreateAnywhereCacheMetadataOrBuilder- Returns:
- Whether the ttl field is set.
-
getTtl
public com.google.protobuf.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;- Specified by:
getTtlin interfaceCreateAnywhereCacheMetadataOrBuilder- Returns:
- The ttl.
-
setTtl
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; -
setTtl
public CreateAnywhereCacheMetadata.Builder setTtl(com.google.protobuf.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; -
mergeTtl
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; -
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; -
getTtlBuilder
public com.google.protobuf.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; -
getTtlOrBuilder
public com.google.protobuf.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;- Specified by:
getTtlOrBuilderin interfaceCreateAnywhereCacheMetadataOrBuilder
-
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;- Specified by:
hasAdmissionPolicyin interfaceCreateAnywhereCacheMetadataOrBuilder- Returns:
- Whether the admissionPolicy field is set.
-
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;- Specified by:
getAdmissionPolicyin interfaceCreateAnywhereCacheMetadataOrBuilder- Returns:
- The admissionPolicy.
-
getAdmissionPolicyBytes
public com.google.protobuf.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;- Specified by:
getAdmissionPolicyBytesin interfaceCreateAnywhereCacheMetadataOrBuilder- Returns:
- The bytes for admissionPolicy.
-
setAdmissionPolicy
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;- Parameters:
value- The admissionPolicy to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setAdmissionPolicyBytes
public CreateAnywhereCacheMetadata.Builder setAdmissionPolicyBytes(com.google.protobuf.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;- Parameters:
value- The bytes for admissionPolicy to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final CreateAnywhereCacheMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateAnywhereCacheMetadata.Builder>
-
mergeUnknownFields
public final CreateAnywhereCacheMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateAnywhereCacheMetadata.Builder>
-