public com.google.protobuf.ByteString getDatacenterIdBytes() {
      java.lang.Object ref = datacenterId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        datacenterId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
<pre>
The id of the vCenter's datacenter this VM is contained in.
</pre>

<code>string datacenter_id = 2;</code>

@return The bytes for datacenterId.
java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmwareVmDetails.java