/** Creates a Builder by copying an existing UserSyncResponse instance */ private Builder(org.kaaproject.kaa.common.endpoint.gen.UserSyncResponse other) { super(org.kaaproject.kaa.common.endpoint.gen.UserSyncResponse.SCHEMA$); if (isValidValue(fields()[0], other.userAttachResponse)) { this.userAttachResponse = data().deepCopy(fields()[0].schema(), other.userAttachResponse); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.userAttachNotification)) { this.userAttachNotification = data().deepCopy(fields()[1].schema(), other.userAttachNotification); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.userDetachNotification)) { this.userDetachNotification = data().deepCopy(fields()[2].schema(), other.userDetachNotification); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.endpointAttachResponses)) { this.endpointAttachResponses = data().deepCopy(fields()[3].schema(), other.endpointAttachResponses); fieldSetFlags()[3] = true; } if (isValidValue(fields()[4], other.endpointDetachResponses)) { this.endpointDetachResponses = data().deepCopy(fields()[4].schema(), other.endpointDetachResponses); fieldSetFlags()[4] = true; } }
/** Creates a Builder by copying an existing Builder */ private Builder(org.kaaproject.kaa.common.endpoint.gen.UserSyncResponse.Builder other) { super(other); if (isValidValue(fields()[0], other.userAttachResponse)) { this.userAttachResponse = data().deepCopy(fields()[0].schema(), other.userAttachResponse); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.userAttachNotification)) { this.userAttachNotification = data().deepCopy(fields()[1].schema(), other.userAttachNotification); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.userDetachNotification)) { this.userDetachNotification = data().deepCopy(fields()[2].schema(), other.userDetachNotification); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.endpointAttachResponses)) { this.endpointAttachResponses = data().deepCopy(fields()[3].schema(), other.endpointAttachResponses); fieldSetFlags()[3] = true; } if (isValidValue(fields()[4], other.endpointDetachResponses)) { this.endpointDetachResponses = data().deepCopy(fields()[4].schema(), other.endpointDetachResponses); fieldSetFlags()[4] = true; } }