@java.lang.Override
    public com.google.cloud.storagebatchoperations.v1.RewriteObjectOrBuilder
        getRewriteObjectOrBuilder() {
      if ((transformationCase_ == 20) && (rewriteObjectBuilder_ != null)) {
        return rewriteObjectBuilder_.getMessageOrBuilder();
      } else {
        if (transformationCase_ == 20) {
          return (com.google.cloud.storagebatchoperations.v1.RewriteObject) transformation_;
        }
        return com.google.cloud.storagebatchoperations.v1.RewriteObject.getDefaultInstance();
      }
    }
<pre>
Rewrite the object and updates metadata like KMS key.
</pre>

<code>.google.cloud.storagebatchoperations.v1.RewriteObject rewrite_object = 20;</code>
java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/Job.java