@java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.storagebatchoperations.v1.PutObjectHold)) {
      return super.equals(obj);
    }
    com.google.cloud.storagebatchoperations.v1.PutObjectHold other =
        (com.google.cloud.storagebatchoperations.v1.PutObjectHold) obj;

    if (temporaryHold_ != other.temporaryHold_) return false;
    if (eventBasedHold_ != other.eventBasedHold_) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<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>

@return The eventBasedHold.
java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/PutObjectHold.java