/** * <code>repeated .exec.bit.control.NodePhaseStatus phase_status = 3;</code> */ public Builder addPhaseStatus( int index, com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus.Builder builderForValue) { if (phaseStatusBuilder_ == null) { ensurePhaseStatusIsMutable(); phaseStatus_.add(index, builderForValue.build()); onChanged(); } else { phaseStatusBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
public void mergeFrom(io.protostuff.Input input, com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus.Builder builder) throws java.io.IOException { for(int number = input.readFieldNumber(this);; number = input.readFieldNumber(this)) { switch(number) { case 0: return; case 1: builder.setMajorFragmentId(input.readInt32()); break; case 2: builder.setMaxMemoryUsed(input.readInt64()); break; default: input.handleUnknownField(number, this); } } } public boolean isInitialized(com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus.Builder builder)
/** * <code>repeated .exec.bit.control.NodePhaseStatus phase_status = 3;</code> */ public Builder addPhaseStatus( com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus.Builder builderForValue) { if (phaseStatusBuilder_ == null) { ensurePhaseStatusIsMutable(); phaseStatus_.add(builderForValue.build()); onChanged(); } else { phaseStatusBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <code>repeated .exec.bit.control.NodePhaseStatus phase_status = 3;</code> */ public Builder setPhaseStatus( int index, com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus.Builder builderForValue) { if (phaseStatusBuilder_ == null) { ensurePhaseStatusIsMutable(); phaseStatus_.set(index, builderForValue.build()); onChanged(); } else { phaseStatusBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
private static Builder create() { return new Builder(); }
private Builder() { maybeForceBuilderInitialization(); }
public Builder clone() { return create().mergeFrom(buildPartial()); }
public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus) { return mergeFrom((com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus)other); } else { super.mergeFrom(other); return this; } }
private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {
public static Builder newBuilder(com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
/** * Return the status of the query's phase tracked by this ticket, on this node. */ NodePhaseStatus getStatus() { return NodePhaseStatus.newBuilder() .setMajorFragmentId(majorFragmentId) .setMaxMemoryUsed(getAllocator().getPeakMemoryAllocation()) .build(); } }
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
public com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus build() { com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public boolean isInitialized(com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus.Builder builder) { return builder.isInitialized(); } public com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus.Builder newMessage()
public Builder mergeFrom(com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus other) { if (other == com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus.getDefaultInstance()) return this; if (other.hasMajorFragmentId()) { setMajorFragmentId(other.getMajorFragmentId()); } if (other.hasMaxMemoryUsed()) { setMaxMemoryUsed(other.getMaxMemoryUsed()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }