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

    if (hasKmsKey() != other.hasKmsKey()) return false;
    if (hasKmsKey()) {
      if (!getKmsKey().equals(other.getKmsKey())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
Required. Resource name of the Cloud KMS key that will be used to encrypt
the object. The Cloud KMS key must be located in same location as the
object. Refer to
https://cloud.google.com/storage/docs/encryption/using-customer-managed-keys#add-object-key
for additional documentation. Format:
projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}
For example:
"projects/123456/locations/us-central1/keyRings/my-keyring/cryptoKeys/my-key".
The object will be rewritten and set with the specified KMS key.
</pre>

<code>
optional string kms_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
</code>

@return The bytes for kmsKey.
java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/RewriteObject.java