if (metric.hasLongValue()) { values[metricId] = metric.getLongValue(); } else if (metric.hasDoubleValue()) { values[metricId] = metric.getDoubleValue(); if (metric.hasLongValue()) { values[index] = metric.getLongValue(); } else if (metric.hasDoubleValue()) { values[index] = metric.getDoubleValue();
public Builder mergeFrom(com.dremio.exec.proto.UserBitShared.MetricValue other) { if (other == com.dremio.exec.proto.UserBitShared.MetricValue.getDefaultInstance()) return this; if (other.hasMetricId()) { setMetricId(other.getMetricId()); } if (other.hasLongValue()) { setLongValue(other.getLongValue()); } if (other.hasDoubleValue()) { setDoubleValue(other.getDoubleValue()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public void writeTo(io.protostuff.Output output, com.dremio.exec.proto.UserBitShared.MetricValue message) throws java.io.IOException { if(message.hasMetricId()) output.writeInt32(1, message.getMetricId(), false); if(message.hasLongValue()) output.writeInt64(2, message.getLongValue(), false); if(message.hasDoubleValue()) output.writeDouble(3, message.getDoubleValue(), false); } public boolean isInitialized(com.dremio.exec.proto.UserBitShared.MetricValue message)