if (isValidValue(fields()[0], other.requestId)) { this.requestId = data().deepCopy(fields()[0].schema(), other.requestId); fieldSetFlags()[0] = true; if (isValidValue(fields()[1], other.syncRequestMetaData)) { this.syncRequestMetaData = data().deepCopy(fields()[1].schema(), other.syncRequestMetaData); fieldSetFlags()[1] = true; if (isValidValue(fields()[2], other.bootstrapSyncRequest)) { this.bootstrapSyncRequest = data().deepCopy(fields()[2].schema(), other.bootstrapSyncRequest); fieldSetFlags()[2] = true; if (isValidValue(fields()[3], other.profileSyncRequest)) { this.profileSyncRequest = data().deepCopy(fields()[3].schema(), other.profileSyncRequest); fieldSetFlags()[3] = true; if (isValidValue(fields()[4], other.configurationSyncRequest)) { this.configurationSyncRequest = data().deepCopy(fields()[4].schema(), other.configurationSyncRequest); fieldSetFlags()[4] = true; if (isValidValue(fields()[5], other.notificationSyncRequest)) { this.notificationSyncRequest = data().deepCopy(fields()[5].schema(), other.notificationSyncRequest); fieldSetFlags()[5] = true; if (isValidValue(fields()[6], other.userSyncRequest)) { this.userSyncRequest = data().deepCopy(fields()[6].schema(), other.userSyncRequest); fieldSetFlags()[6] = true; if (isValidValue(fields()[7], other.eventSyncRequest)) {
if (isValidValue(fields()[0], other.requestId)) { this.requestId = data().deepCopy(fields()[0].schema(), other.requestId); fieldSetFlags()[0] = true; if (isValidValue(fields()[1], other.syncRequestMetaData)) { this.syncRequestMetaData = data().deepCopy(fields()[1].schema(), other.syncRequestMetaData); fieldSetFlags()[1] = true; if (isValidValue(fields()[2], other.bootstrapSyncRequest)) { this.bootstrapSyncRequest = data().deepCopy(fields()[2].schema(), other.bootstrapSyncRequest); fieldSetFlags()[2] = true; if (isValidValue(fields()[3], other.profileSyncRequest)) { this.profileSyncRequest = data().deepCopy(fields()[3].schema(), other.profileSyncRequest); fieldSetFlags()[3] = true; if (isValidValue(fields()[4], other.configurationSyncRequest)) { this.configurationSyncRequest = data().deepCopy(fields()[4].schema(), other.configurationSyncRequest); fieldSetFlags()[4] = true; if (isValidValue(fields()[5], other.notificationSyncRequest)) { this.notificationSyncRequest = data().deepCopy(fields()[5].schema(), other.notificationSyncRequest); fieldSetFlags()[5] = true; if (isValidValue(fields()[6], other.userSyncRequest)) { this.userSyncRequest = data().deepCopy(fields()[6].schema(), other.userSyncRequest); fieldSetFlags()[6] = true; if (isValidValue(fields()[7], other.eventSyncRequest)) {
@Override public SyncRequest build() { try { SyncRequest record = new SyncRequest(); record.requestId = fieldSetFlags()[0] ? this.requestId : (java.lang.Integer) defaultValue(fields()[0]); record.syncRequestMetaData = fieldSetFlags()[1] ? this.syncRequestMetaData : (org.kaaproject.kaa.common.endpoint.gen.SyncRequestMetaData) defaultValue(fields()[1]); record.bootstrapSyncRequest = fieldSetFlags()[2] ? this.bootstrapSyncRequest : (org.kaaproject.kaa.common.endpoint.gen.BootstrapSyncRequest) defaultValue(fields()[2]); record.profileSyncRequest = fieldSetFlags()[3] ? this.profileSyncRequest : (org.kaaproject.kaa.common.endpoint.gen.ProfileSyncRequest) defaultValue(fields()[3]); record.configurationSyncRequest = fieldSetFlags()[4] ? this.configurationSyncRequest : (org.kaaproject.kaa.common.endpoint.gen.ConfigurationSyncRequest) defaultValue(fields()[4]); record.notificationSyncRequest = fieldSetFlags()[5] ? this.notificationSyncRequest : (org.kaaproject.kaa.common.endpoint.gen.NotificationSyncRequest) defaultValue(fields()[5]); record.userSyncRequest = fieldSetFlags()[6] ? this.userSyncRequest : (org.kaaproject.kaa.common.endpoint.gen.UserSyncRequest) defaultValue(fields()[6]); record.eventSyncRequest = fieldSetFlags()[7] ? this.eventSyncRequest : (org.kaaproject.kaa.common.endpoint.gen.EventSyncRequest) defaultValue(fields()[7]); record.logSyncRequest = fieldSetFlags()[8] ? this.logSyncRequest : (org.kaaproject.kaa.common.endpoint.gen.LogSyncRequest) defaultValue(fields()[8]); record.extensionSyncRequests = fieldSetFlags()[9] ? this.extensionSyncRequests : (java.util.List<org.kaaproject.kaa.common.endpoint.gen.ExtensionSync>) defaultValue(fields()[9]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
/** Sets the value of the 'userSyncRequest' field */ public org.kaaproject.kaa.common.endpoint.gen.SyncRequest.Builder setUserSyncRequest(org.kaaproject.kaa.common.endpoint.gen.UserSyncRequest value) { validate(fields()[6], value); this.userSyncRequest = value; fieldSetFlags()[6] = true; return this; }
/** Sets the value of the 'configurationSyncRequest' field */ public org.kaaproject.kaa.common.endpoint.gen.SyncRequest.Builder setConfigurationSyncRequest(org.kaaproject.kaa.common.endpoint.gen.ConfigurationSyncRequest value) { validate(fields()[4], value); this.configurationSyncRequest = value; fieldSetFlags()[4] = true; return this; }
/** Sets the value of the 'requestId' field */ public org.kaaproject.kaa.common.endpoint.gen.SyncRequest.Builder setRequestId(int value) { validate(fields()[0], value); this.requestId = value; fieldSetFlags()[0] = true; return this; }
/** Sets the value of the 'logSyncRequest' field */ public org.kaaproject.kaa.common.endpoint.gen.SyncRequest.Builder setLogSyncRequest(org.kaaproject.kaa.common.endpoint.gen.LogSyncRequest value) { validate(fields()[8], value); this.logSyncRequest = value; fieldSetFlags()[8] = true; return this; }
/** Sets the value of the 'bootstrapSyncRequest' field */ public org.kaaproject.kaa.common.endpoint.gen.SyncRequest.Builder setBootstrapSyncRequest(org.kaaproject.kaa.common.endpoint.gen.BootstrapSyncRequest value) { validate(fields()[2], value); this.bootstrapSyncRequest = value; fieldSetFlags()[2] = true; return this; }
/** Sets the value of the 'eventSyncRequest' field */ public org.kaaproject.kaa.common.endpoint.gen.SyncRequest.Builder setEventSyncRequest(org.kaaproject.kaa.common.endpoint.gen.EventSyncRequest value) { validate(fields()[7], value); this.eventSyncRequest = value; fieldSetFlags()[7] = true; return this; }
/** Sets the value of the 'profileSyncRequest' field */ public org.kaaproject.kaa.common.endpoint.gen.SyncRequest.Builder setProfileSyncRequest(org.kaaproject.kaa.common.endpoint.gen.ProfileSyncRequest value) { validate(fields()[3], value); this.profileSyncRequest = value; fieldSetFlags()[3] = true; return this; }
/** Sets the value of the 'extensionSyncRequests' field */ public org.kaaproject.kaa.common.endpoint.gen.SyncRequest.Builder setExtensionSyncRequests(java.util.List<org.kaaproject.kaa.common.endpoint.gen.ExtensionSync> value) { validate(fields()[9], value); this.extensionSyncRequests = value; fieldSetFlags()[9] = true; return this; }
/** Sets the value of the 'notificationSyncRequest' field */ public org.kaaproject.kaa.common.endpoint.gen.SyncRequest.Builder setNotificationSyncRequest(org.kaaproject.kaa.common.endpoint.gen.NotificationSyncRequest value) { validate(fields()[5], value); this.notificationSyncRequest = value; fieldSetFlags()[5] = true; return this; }
/** Sets the value of the 'syncRequestMetaData' field */ public org.kaaproject.kaa.common.endpoint.gen.SyncRequest.Builder setSyncRequestMetaData(org.kaaproject.kaa.common.endpoint.gen.SyncRequestMetaData value) { validate(fields()[1], value); this.syncRequestMetaData = value; fieldSetFlags()[1] = true; return this; }