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

      if (hasObjectConditions() != other.hasObjectConditions()) return false;
      if (hasObjectConditions()) {
        if (!getObjectConditions().equals(other.getObjectConditions())) return false;
      }
      if (hasTransferOptions() != other.hasTransferOptions()) return false;
      if (hasTransferOptions()) {
        if (!getTransferOptions().equals(other.getTransferOptions())) return false;
      }
      if (!getDataSourceCase().equals(other.getDataSourceCase())) return false;
      switch (dataSourceCase_) {
        case 1:
          if (!getGcsDataSource().equals(other.getGcsDataSource())) return false;
          break;
        case 0:
        default:
      }
      if (!getDataSinkCase().equals(other.getDataSinkCase())) return false;
      switch (dataSinkCase_) {
        case 2:
          if (!getGcsDataSink().equals(other.getGcsDataSink())) return false;
          break;
        case 0:
        default:
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }
<pre>
Specifies the metadata options to be applied during replication.
Delete options are not supported. If a delete option is specified, the
request fails with an [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]
error.
</pre>

<code>.google.storagetransfer.v1.TransferOptions transfer_options = 4;</code>
java-storage-transfer/proto-google-cloud-storage-transfer-v1/src/main/java/com/google/storagetransfer/v1/proto/TransferTypes.java