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

    if (!getVmName().equals(other.getVmName())) return false;
    if (!getProject().equals(other.getProject())) return false;
    if (!getZone().equals(other.getZone())) return false;
    if (!getMachineTypeSeries().equals(other.getMachineTypeSeries())) return false;
    if (!getMachineType().equals(other.getMachineType())) return false;
    if (!getNetworkTagsList().equals(other.getNetworkTagsList())) return false;
    if (!getNetworkInterfacesList().equals(other.getNetworkInterfacesList())) return false;
    if (!getServiceAccount().equals(other.getServiceAccount())) return false;
    if (diskType_ != other.diskType_) return false;
    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
    if (licenseType_ != other.licenseType_) return false;
    if (hasAppliedLicense() != other.hasAppliedLicense()) return false;
    if (hasAppliedLicense()) {
      if (!getAppliedLicense().equals(other.getAppliedLicense())) return false;
    }
    if (hasComputeScheduling() != other.hasComputeScheduling()) return false;
    if (hasComputeScheduling()) {
      if (!getComputeScheduling().equals(other.getComputeScheduling())) return false;
    }
    if (getSecureBoot() != other.getSecureBoot()) return false;
    if (bootOption_ != other.bootOption_) return false;
    if (!internalGetMetadata().equals(other.internalGetMetadata())) return false;
    if (!getAdditionalLicensesList().equals(other.getAdditionalLicensesList())) return false;
    if (!getHostname().equals(other.getHostname())) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
The hostname to assign to the VM.
</pre>

<code>string hostname = 18;</code>

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