if (isValidValue(fields()[0], other.simpleField)) { this.simpleField = data().deepCopy(fields()[0].schema(), other.simpleField); fieldSetFlags()[0] = true; if (isValidValue(fields()[1], other.recordField)) { this.recordField = data().deepCopy(fields()[1].schema(), other.recordField); fieldSetFlags()[1] = true; if (isValidValue(fields()[2], other.arraySimpleField)) { this.arraySimpleField = data().deepCopy(fields()[2].schema(), other.arraySimpleField); fieldSetFlags()[2] = true; if (isValidValue(fields()[3], other.arrayRecordField)) { this.arrayRecordField = data().deepCopy(fields()[3].schema(), other.arrayRecordField); fieldSetFlags()[3] = true; if (isValidValue(fields()[4], other.mapSimpleField)) { this.mapSimpleField = data().deepCopy(fields()[4].schema(), other.mapSimpleField); fieldSetFlags()[4] = true; if (isValidValue(fields()[5], other.mapRecordField)) { this.mapRecordField = data().deepCopy(fields()[5].schema(), other.mapRecordField); fieldSetFlags()[5] = true; if (isValidValue(fields()[6], other.nullableRecordField)) { this.nullableRecordField = data().deepCopy(fields()[6].schema(), other.nullableRecordField); fieldSetFlags()[6] = true;
if (isValidValue(fields()[0], other.simpleField)) { this.simpleField = data().deepCopy(fields()[0].schema(), other.simpleField); fieldSetFlags()[0] = true; if (isValidValue(fields()[1], other.recordField)) { this.recordField = data().deepCopy(fields()[1].schema(), other.recordField); fieldSetFlags()[1] = true; if (isValidValue(fields()[2], other.arraySimpleField)) { this.arraySimpleField = data().deepCopy(fields()[2].schema(), other.arraySimpleField); fieldSetFlags()[2] = true; if (isValidValue(fields()[3], other.arrayRecordField)) { this.arrayRecordField = data().deepCopy(fields()[3].schema(), other.arrayRecordField); fieldSetFlags()[3] = true; if (isValidValue(fields()[4], other.mapSimpleField)) { this.mapSimpleField = data().deepCopy(fields()[4].schema(), other.mapSimpleField); fieldSetFlags()[4] = true; if (isValidValue(fields()[5], other.mapRecordField)) { this.mapRecordField = data().deepCopy(fields()[5].schema(), other.mapRecordField); fieldSetFlags()[5] = true; if (isValidValue(fields()[6], other.nullableRecordField)) { this.nullableRecordField = data().deepCopy(fields()[6].schema(), other.nullableRecordField); fieldSetFlags()[6] = true;
@Override public ExtendedEndpointProfile build() { try { ExtendedEndpointProfile record = new ExtendedEndpointProfile(); record.simpleField = fieldSetFlags()[0] ? this.simpleField : (java.lang.String) defaultValue(fields()[0]); record.recordField = fieldSetFlags()[1] ? this.recordField : (org.kaaproject.kaa.common.endpoint.gen.ExtendedEndpointProfileChild) defaultValue(fields()[1]); record.arraySimpleField = fieldSetFlags()[2] ? this.arraySimpleField : (java.util.List<java.lang.String>) defaultValue(fields()[2]); record.arrayRecordField = fieldSetFlags()[3] ? this.arrayRecordField : (java.util.List<org.kaaproject.kaa.common.endpoint.gen.ExtendedEndpointProfileChild>) defaultValue(fields()[3]); record.mapSimpleField = fieldSetFlags()[4] ? this.mapSimpleField : (java.util.Map<java.lang.String,java.lang.Long>) defaultValue(fields()[4]); record.mapRecordField = fieldSetFlags()[5] ? this.mapRecordField : (java.util.Map<java.lang.String,org.kaaproject.kaa.common.endpoint.gen.ExtendedEndpointProfileChild>) defaultValue(fields()[5]); record.nullableRecordField = fieldSetFlags()[6] ? this.nullableRecordField : (org.kaaproject.kaa.common.endpoint.gen.ExtendedEndpointProfileChild) defaultValue(fields()[6]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
/** Sets the value of the 'nullableRecordField' field */ public org.kaaproject.kaa.common.endpoint.gen.ExtendedEndpointProfile.Builder setNullableRecordField(org.kaaproject.kaa.common.endpoint.gen.ExtendedEndpointProfileChild value) { validate(fields()[6], value); this.nullableRecordField = value; fieldSetFlags()[6] = true; return this; }
/** Sets the value of the 'mapRecordField' field */ public org.kaaproject.kaa.common.endpoint.gen.ExtendedEndpointProfile.Builder setMapRecordField(java.util.Map<java.lang.String,org.kaaproject.kaa.common.endpoint.gen.ExtendedEndpointProfileChild> value) { validate(fields()[5], value); this.mapRecordField = value; fieldSetFlags()[5] = true; return this; }
/** Sets the value of the 'mapSimpleField' field */ public org.kaaproject.kaa.common.endpoint.gen.ExtendedEndpointProfile.Builder setMapSimpleField(java.util.Map<java.lang.String,java.lang.Long> value) { validate(fields()[4], value); this.mapSimpleField = value; fieldSetFlags()[4] = true; return this; }
/** Sets the value of the 'arraySimpleField' field */ public org.kaaproject.kaa.common.endpoint.gen.ExtendedEndpointProfile.Builder setArraySimpleField(java.util.List<java.lang.String> value) { validate(fields()[2], value); this.arraySimpleField = value; fieldSetFlags()[2] = true; return this; }
/** Sets the value of the 'simpleField' field */ public org.kaaproject.kaa.common.endpoint.gen.ExtendedEndpointProfile.Builder setSimpleField(java.lang.String value) { validate(fields()[0], value); this.simpleField = value; fieldSetFlags()[0] = true; return this; }
/** Sets the value of the 'recordField' field */ public org.kaaproject.kaa.common.endpoint.gen.ExtendedEndpointProfile.Builder setRecordField(org.kaaproject.kaa.common.endpoint.gen.ExtendedEndpointProfileChild value) { validate(fields()[1], value); this.recordField = value; fieldSetFlags()[1] = true; return this; }
/** Sets the value of the 'arrayRecordField' field */ public org.kaaproject.kaa.common.endpoint.gen.ExtendedEndpointProfile.Builder setArrayRecordField(java.util.List<org.kaaproject.kaa.common.endpoint.gen.ExtendedEndpointProfileChild> value) { validate(fields()[3], value); this.arrayRecordField = value; fieldSetFlags()[3] = true; return this; }