@java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      if (gcsSourceBuilder_ != null) {
        gcsSourceBuilder_.clear();
      }
      if (managedBackupSourceBuilder_ != null) {
        managedBackupSourceBuilder_.clear();
      }
      name_ = "";
      createTime_ = null;
      if (createTimeBuilder_ != null) {
        createTimeBuilder_.dispose();
        createTimeBuilder_ = null;
      }
      updateTime_ = null;
      if (updateTimeBuilder_ != null) {
        updateTimeBuilder_.dispose();
        updateTimeBuilder_ = null;
      }
      internalGetMutableLabels().clear();
      state_ = 0;
      stateInfo_ = null;
      if (stateInfoBuilder_ != null) {
        stateInfoBuilder_.dispose();
        stateInfoBuilder_ = null;
      }
      uid_ = "";
      replicaCount_ = 0;
      authorizationMode_ = 0;
      transitEncryptionMode_ = 0;
      shardCount_ = 0;
      if (discoveryEndpointsBuilder_ == null) {
        discoveryEndpoints_ = java.util.Collections.emptyList();
      } else {
        discoveryEndpoints_ = null;
        discoveryEndpointsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00002000);
      nodeType_ = 0;
      persistenceConfig_ = null;
      if (persistenceConfigBuilder_ != null) {
        persistenceConfigBuilder_.dispose();
        persistenceConfigBuilder_ = null;
      }
      engineVersion_ = "";
      internalGetMutableEngineConfigs().clear();
      nodeConfig_ = null;
      if (nodeConfigBuilder_ != null) {
        nodeConfigBuilder_.dispose();
        nodeConfigBuilder_ = null;
      }
      zoneDistributionConfig_ = null;
      if (zoneDistributionConfigBuilder_ != null) {
        zoneDistributionConfigBuilder_.dispose();
        zoneDistributionConfigBuilder_ = null;
      }
      deletionProtectionEnabled_ = false;
      if (pscAutoConnectionsBuilder_ == null) {
        pscAutoConnections_ = java.util.Collections.emptyList();
      } else {
        pscAutoConnections_ = null;
        pscAutoConnectionsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00200000);
      if (pscAttachmentDetailsBuilder_ == null) {
        pscAttachmentDetails_ = java.util.Collections.emptyList();
      } else {
        pscAttachmentDetails_ = null;
        pscAttachmentDetailsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00400000);
      if (endpointsBuilder_ == null) {
        endpoints_ = java.util.Collections.emptyList();
      } else {
        endpoints_ = null;
        endpointsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00800000);
      mode_ = 0;
      ondemandMaintenance_ = false;
      maintenancePolicy_ = null;
      if (maintenancePolicyBuilder_ != null) {
        maintenancePolicyBuilder_.dispose();
        maintenancePolicyBuilder_ = null;
      }
      maintenanceSchedule_ = null;
      if (maintenanceScheduleBuilder_ != null) {
        maintenanceScheduleBuilder_.dispose();
        maintenanceScheduleBuilder_ = null;
      }
      crossInstanceReplicationConfig_ = null;
      if (crossInstanceReplicationConfigBuilder_ != null) {
        crossInstanceReplicationConfigBuilder_.dispose();
        crossInstanceReplicationConfigBuilder_ = null;
      }
      asyncInstanceEndpointsDeletionEnabled_ = false;
      backupCollection_ = "";
      automatedBackupConfig_ = null;
      if (automatedBackupConfigBuilder_ != null) {
        automatedBackupConfigBuilder_.dispose();
        automatedBackupConfigBuilder_ = null;
      }
      importSourcesCase_ = 0;
      importSources_ = null;
      return this;
    }
<pre>
A Memorystore instance.
</pre>

Protobuf type {@code google.cloud.memorystore.v1.Instance}
java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/Instance.java