/** * <code>repeated .exec.shared.MetricValue metric = 8;</code> */ public Builder setMetric( int index, org.apache.drill.exec.proto.UserBitShared.MetricValue.Builder builderForValue) { if (metricBuilder_ == null) { ensureMetricIsMutable(); metric_.set(index, builderForValue.build()); onChanged(); } else { metricBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserBitShared.MetricValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserBitShared.MetricValue) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
public void mergeFrom(com.dyuproject.protostuff.Input input, org.apache.drill.exec.proto.UserBitShared.MetricValue.Builder builder) throws java.io.IOException { for(int number = input.readFieldNumber(this);; number = input.readFieldNumber(this)) { switch(number) { case 0: return; case 1: builder.setMetricId(input.readInt32()); break; case 2: builder.setLongValue(input.readInt64()); break; case 3: builder.setDoubleValue(input.readDouble()); break; default: input.handleUnknownField(number, this); } } } public boolean isInitialized(org.apache.drill.exec.proto.UserBitShared.MetricValue.Builder builder)
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserBitShared.MetricValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserBitShared.MetricValue) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
/** * <code>repeated .exec.shared.MetricValue metric = 8;</code> */ public Builder addMetric( org.apache.drill.exec.proto.UserBitShared.MetricValue.Builder builderForValue) { if (metricBuilder_ == null) { ensureMetricIsMutable(); metric_.add(builderForValue.build()); onChanged(); } else { metricBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <code>repeated .exec.shared.MetricValue metric = 8;</code> */ public Builder addMetric( int index, org.apache.drill.exec.proto.UserBitShared.MetricValue.Builder builderForValue) { if (metricBuilder_ == null) { ensureMetricIsMutable(); metric_.add(index, builderForValue.build()); onChanged(); } else { metricBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
private static Builder create() { return new Builder(); }
private Builder() { maybeForceBuilderInitialization(); }
/** * <code>repeated .exec.shared.MetricValue metric = 8;</code> */ public Builder setMetric( int index, org.apache.drill.exec.proto.UserBitShared.MetricValue.Builder builderForValue) { if (metricBuilder_ == null) { ensureMetricIsMutable(); metric_.set(index, builderForValue.build()); onChanged(); } else { metricBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
public Builder mergeFrom(org.apache.drill.exec.proto.UserBitShared.MetricValue other) { if (other == org.apache.drill.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 static Builder newBuilder(org.apache.drill.exec.proto.UserBitShared.MetricValue prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
public Builder clone() { return create().mergeFrom(buildPartial()); }
public org.apache.drill.exec.proto.UserBitShared.MetricValue build() { org.apache.drill.exec.proto.UserBitShared.MetricValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public boolean isInitialized(org.apache.drill.exec.proto.UserBitShared.MetricValue.Builder builder) { return builder.isInitialized(); } public org.apache.drill.exec.proto.UserBitShared.MetricValue.Builder newMessage()
@Override public void apply(int key, long value) { builder.addMetric(MetricValue.newBuilder().setMetricId(key).setLongValue(value)); } }
private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {
public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserBitShared.MetricValue) { return mergeFrom((org.apache.drill.exec.proto.UserBitShared.MetricValue)other); } else { super.mergeFrom(other); return this; } }
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
@Override public void apply(int key, double value) { builder.addMetric(MetricValue.newBuilder().setMetricId(key).setDoubleValue(value)); } }
public void mergeFrom(com.dyuproject.protostuff.Input input, org.apache.drill.exec.proto.UserBitShared.MetricValue.Builder builder) throws java.io.IOException { for(int number = input.readFieldNumber(this);; number = input.readFieldNumber(this)) { switch(number) { case 0: return; case 1: builder.setMetricId(input.readInt32()); break; case 2: builder.setLongValue(input.readInt64()); break; case 3: builder.setDoubleValue(input.readDouble()); break; default: input.handleUnknownField(number, this); } } } public boolean isInitialized(org.apache.drill.exec.proto.UserBitShared.MetricValue.Builder builder)