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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CreateAnywhereCacheMetadata.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<CreateAnywhereCacheMetadata.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CreateAnywhereCacheMetadata.Builder>
    • getDefaultInstanceForType

      public CreateAnywhereCacheMetadata getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CreateAnywhereCacheMetadata buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<CreateAnywhereCacheMetadata.Builder>
    • setField

      public CreateAnywhereCacheMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateAnywhereCacheMetadata.Builder>
    • clearField

      public CreateAnywhereCacheMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateAnywhereCacheMetadata.Builder>
    • clearOneof

      public CreateAnywhereCacheMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CreateAnywhereCacheMetadata.Builder>
    • setRepeatedField

      public CreateAnywhereCacheMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateAnywhereCacheMetadata.Builder>
    • addRepeatedField

      public CreateAnywhereCacheMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateAnywhereCacheMetadata.Builder>
    • mergeFrom

      public CreateAnywhereCacheMetadata.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateAnywhereCacheMetadata.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasCommonMetadata in interface CreateAnywhereCacheMetadataOrBuilder
      Returns:
      Whether the commonMetadata field is set.
    • getCommonMetadata

      public CommonLongRunningOperationMetadata getCommonMetadata()
       Generic metadata for the long running operation.
       
      .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;
      Specified by:
      getCommonMetadata in interface CreateAnywhereCacheMetadataOrBuilder
      Returns:
      The commonMetadata.
    • setCommonMetadata

       Generic metadata for the long running operation.
       
      .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;
    • setCommonMetadata

       Generic metadata for the long running operation.
       
      .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;
    • mergeCommonMetadata

       Generic metadata for the long running operation.
       
      .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;
    • clearCommonMetadata

      public CreateAnywhereCacheMetadata.Builder clearCommonMetadata()
       Generic metadata for the long running operation.
       
      .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;
    • getCommonMetadataBuilder

      public CommonLongRunningOperationMetadata.Builder getCommonMetadataBuilder()
       Generic metadata for the long running operation.
       
      .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;
    • getCommonMetadataOrBuilder

      public CommonLongRunningOperationMetadataOrBuilder getCommonMetadataOrBuilder()
       Generic metadata for the long running operation.
       
      .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;
      Specified by:
      getCommonMetadataOrBuilder in interface CreateAnywhereCacheMetadataOrBuilder
    • hasAnywhereCacheId

      public boolean hasAnywhereCacheId()
       Anywhere Cache ID.
       
      optional string anywhere_cache_id = 2;
      Specified by:
      hasAnywhereCacheId in interface CreateAnywhereCacheMetadataOrBuilder
      Returns:
      Whether the anywhereCacheId field is set.
    • getAnywhereCacheId

      public String getAnywhereCacheId()
       Anywhere Cache ID.
       
      optional string anywhere_cache_id = 2;
      Specified by:
      getAnywhereCacheId in interface CreateAnywhereCacheMetadataOrBuilder
      Returns:
      The anywhereCacheId.
    • getAnywhereCacheIdBytes

      public com.google.protobuf.ByteString getAnywhereCacheIdBytes()
       Anywhere Cache ID.
       
      optional string anywhere_cache_id = 2;
      Specified by:
      getAnywhereCacheIdBytes in interface CreateAnywhereCacheMetadataOrBuilder
      Returns:
      The bytes for anywhereCacheId.
    • setAnywhereCacheId

      public CreateAnywhereCacheMetadata.Builder setAnywhereCacheId(String value)
       Anywhere Cache ID.
       
      optional string anywhere_cache_id = 2;
      Parameters:
      value - The anywhereCacheId to set.
      Returns:
      This builder for chaining.
    • clearAnywhereCacheId

      public CreateAnywhereCacheMetadata.Builder 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:
      hasZone in interface CreateAnywhereCacheMetadataOrBuilder
      Returns:
      Whether the zone field is set.
    • getZone

      public String getZone()
       The zone in which the cache instance is running. For example,
       us-central1-a.
       
      optional string zone = 6;
      Specified by:
      getZone in interface CreateAnywhereCacheMetadataOrBuilder
      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:
      getZoneBytes in interface CreateAnywhereCacheMetadataOrBuilder
      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

      public CreateAnywhereCacheMetadata.Builder setZoneBytes(com.google.protobuf.ByteString value)
       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:
      hasTtl in interface CreateAnywhereCacheMetadataOrBuilder
      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:
      getTtl in interface CreateAnywhereCacheMetadataOrBuilder
      Returns:
      The ttl.
    • setTtl

      public CreateAnywhereCacheMetadata.Builder setTtl(com.google.protobuf.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;
    • 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

      public CreateAnywhereCacheMetadata.Builder mergeTtl(com.google.protobuf.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;
    • 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:
      getTtlOrBuilder in interface CreateAnywhereCacheMetadataOrBuilder
    • 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:
      hasAdmissionPolicy in interface CreateAnywhereCacheMetadataOrBuilder
      Returns:
      Whether the admissionPolicy field is set.
    • 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;
      Specified by:
      getAdmissionPolicy in interface CreateAnywhereCacheMetadataOrBuilder
      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:
      getAdmissionPolicyBytes in interface CreateAnywhereCacheMetadataOrBuilder
      Returns:
      The bytes for admissionPolicy.
    • setAdmissionPolicy

      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;
      Parameters:
      value - The admissionPolicy to set.
      Returns:
      This builder for chaining.
    • 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:
      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:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateAnywhereCacheMetadata.Builder>
    • mergeUnknownFields

      public final CreateAnywhereCacheMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateAnywhereCacheMetadata.Builder>