/** * Creates a Builder by copying an existing Metric instance * @param other The existing instance to copy. */ private Builder(org.apache.gobblin.metrics.Metric other) { super(SCHEMA$); if (isValidValue(fields()[0], other.name)) { this.name = data().deepCopy(fields()[0].schema(), other.name); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.value)) { this.value = data().deepCopy(fields()[1].schema(), other.value); fieldSetFlags()[1] = true; } }
/** * Creates a Builder by copying an existing Builder. * @param other The existing Builder to copy. */ private Builder(org.apache.gobblin.metrics.Metric.Builder other) { super(other); if (isValidValue(fields()[0], other.name)) { this.name = data().deepCopy(fields()[0].schema(), other.name); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.value)) { this.value = data().deepCopy(fields()[1].schema(), other.value); fieldSetFlags()[1] = true; } }
/** * Creates a Builder by copying an existing Metric instance * @param other The existing instance to copy. */ private Builder(org.apache.gobblin.metrics.Metric other) { super(SCHEMA$); if (isValidValue(fields()[0], other.name)) { this.name = data().deepCopy(fields()[0].schema(), other.name); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.value)) { this.value = data().deepCopy(fields()[1].schema(), other.value); fieldSetFlags()[1] = true; } }
/** * Creates a Builder by copying an existing Builder. * @param other The existing Builder to copy. */ private Builder(org.apache.gobblin.metrics.Metric.Builder other) { super(other); if (isValidValue(fields()[0], other.name)) { this.name = data().deepCopy(fields()[0].schema(), other.name); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.value)) { this.value = data().deepCopy(fields()[1].schema(), other.value); fieldSetFlags()[1] = true; } }