public Builder setEventBasedHold(
        com.google.cloud.storagebatchoperations.v1.PutObjectHold.HoldStatus value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000002;
      eventBasedHold_ = value.getNumber();
      onChanged();
      return this;
    }
<pre>
Required. Updates object event based holds state. When object event based
hold is set, object cannot be deleted or replaced. Resets object's time in
the bucket for the purposes of the retention period.
</pre>

<code>
.google.cloud.storagebatchoperations.v1.PutObjectHold.HoldStatus event_based_hold = 2 [(.google.api.field_behavior) = REQUIRED];
</code>

@param value The eventBasedHold to set.
@return This builder for chaining.
java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/PutObjectHold.java