public LockComponentBuilder setLock(LockType type) {
    component.setType(type);
    return this;
  }
Get the constructed lock component.
@return lock component.
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/LockComponentBuilder.java