@java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (deviceType_
        != com.google.cloud.talent.v4.DeviceInfo.DeviceType.DEVICE_TYPE_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, deviceType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }
<pre>
A device-specific ID. The ID must be a unique identifier that
distinguishes the device from other devices.
</pre>

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

@return The bytes for id.
java-talent/proto-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/DeviceInfo.java