final ControlMessage.BlockStateChangedMsg.Builder blockStateChangedMsgBuilder = ControlMessage.BlockStateChangedMsg.newBuilder() .setExecutorId(executorId) .setBlockId(blockId) .setState(ControlMessage.BlockStateFromExecutor.AVAILABLE); blockStateChangedMsgBuilder.setLocation(REMOTE_FILE_STORE); } else { blockStateChangedMsgBuilder.setLocation(executorId); .setListenerId(MessageEnvironment.BLOCK_MANAGER_MASTER_MESSAGE_LISTENER_ID) .setType(ControlMessage.MessageType.BlockStateChanged) .setBlockStateChangedMsg(blockStateChangedMsgBuilder.build()) .build());
subBuilder.mergeFrom(blockStateChangedMsg_); blockStateChangedMsg_ = subBuilder.buildPartial();
subBuilder.mergeFrom(blockStateChangedMsg_); blockStateChangedMsg_ = subBuilder.buildPartial();
final ControlMessage.BlockStateChangedMsg.Builder blockStateChangedMsgBuilder = ControlMessage.BlockStateChangedMsg.newBuilder() .setExecutorId(executorId) .setBlockId(blockId) .setState(ControlMessage.BlockStateFromExecutor.AVAILABLE); blockStateChangedMsgBuilder.setLocation(REMOTE_FILE_STORE); } else { blockStateChangedMsgBuilder.setLocation(executorId); .setListenerId(MessageEnvironment.BLOCK_MANAGER_MASTER_MESSAGE_LISTENER_ID) .setType(ControlMessage.MessageType.BlockStateChanged) .setBlockStateChangedMsg(blockStateChangedMsgBuilder.build()) .build());
final ControlMessage.BlockStateChangedMsg.Builder blockStateChangedMsgBuilder = ControlMessage.BlockStateChangedMsg.newBuilder() .setExecutorId(executorId) .setBlockId(blockId) .setState(ControlMessage.BlockStateFromExecutor.NOT_AVAILABLE); blockStateChangedMsgBuilder.setLocation(REMOTE_FILE_STORE); } else { blockStateChangedMsgBuilder.setLocation(executorId);
final ControlMessage.BlockStateChangedMsg.Builder blockStateChangedMsgBuilder = ControlMessage.BlockStateChangedMsg.newBuilder() .setExecutorId(executorId) .setBlockId(blockId) .setState(ControlMessage.BlockStateFromExecutor.NOT_AVAILABLE); blockStateChangedMsgBuilder.setLocation(REMOTE_FILE_STORE); } else { blockStateChangedMsgBuilder.setLocation(executorId);
public Builder mergeFrom(org.apache.nemo.runtime.common.comm.ControlMessage.BlockStateChangedMsg other) { if (other == org.apache.nemo.runtime.common.comm.ControlMessage.BlockStateChangedMsg.getDefaultInstance()) return this; if (other.hasExecutorId()) { bitField0_ |= 0x00000001; executorId_ = other.executorId_; onChanged(); } if (other.hasBlockId()) { bitField0_ |= 0x00000002; blockId_ = other.blockId_; onChanged(); } if (other.hasState()) { setState(other.getState()); } if (other.hasLocation()) { bitField0_ |= 0x00000008; location_ = other.location_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.apache.nemo.runtime.common.comm.ControlMessage.BlockStateChangedMsg other) { if (other == org.apache.nemo.runtime.common.comm.ControlMessage.BlockStateChangedMsg.getDefaultInstance()) return this; if (other.hasExecutorId()) { bitField0_ |= 0x00000001; executorId_ = other.executorId_; onChanged(); } if (other.hasBlockId()) { bitField0_ |= 0x00000002; blockId_ = other.blockId_; onChanged(); } if (other.hasState()) { setState(other.getState()); } if (other.hasLocation()) { bitField0_ |= 0x00000008; location_ = other.location_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>optional .protobuf.BlockStateChangedMsg blockStateChangedMsg = 6;</code> */ public Builder mergeBlockStateChangedMsg(org.apache.nemo.runtime.common.comm.ControlMessage.BlockStateChangedMsg value) { if (blockStateChangedMsgBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && blockStateChangedMsg_ != org.apache.nemo.runtime.common.comm.ControlMessage.BlockStateChangedMsg.getDefaultInstance()) { blockStateChangedMsg_ = org.apache.nemo.runtime.common.comm.ControlMessage.BlockStateChangedMsg.newBuilder(blockStateChangedMsg_).mergeFrom(value).buildPartial(); } else { blockStateChangedMsg_ = value; } onChanged(); } else { blockStateChangedMsgBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /**
/** * <code>optional .protobuf.BlockStateChangedMsg blockStateChangedMsg = 6;</code> */ public Builder mergeBlockStateChangedMsg(org.apache.nemo.runtime.common.comm.ControlMessage.BlockStateChangedMsg value) { if (blockStateChangedMsgBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && blockStateChangedMsg_ != org.apache.nemo.runtime.common.comm.ControlMessage.BlockStateChangedMsg.getDefaultInstance()) { blockStateChangedMsg_ = org.apache.nemo.runtime.common.comm.ControlMessage.BlockStateChangedMsg.newBuilder(blockStateChangedMsg_).mergeFrom(value).buildPartial(); } else { blockStateChangedMsg_ = value; } onChanged(); } else { blockStateChangedMsgBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /**
/** * <code>optional .protobuf.BlockStateChangedMsg blockStateChangedMsg = 6;</code> */ public Builder setBlockStateChangedMsg( org.apache.nemo.runtime.common.comm.ControlMessage.BlockStateChangedMsg.Builder builderForValue) { if (blockStateChangedMsgBuilder_ == null) { blockStateChangedMsg_ = builderForValue.build(); onChanged(); } else { blockStateChangedMsgBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /**
/** * <code>optional .protobuf.BlockStateChangedMsg blockStateChangedMsg = 6;</code> */ public Builder setBlockStateChangedMsg( org.apache.nemo.runtime.common.comm.ControlMessage.BlockStateChangedMsg.Builder builderForValue) { if (blockStateChangedMsgBuilder_ == null) { blockStateChangedMsg_ = builderForValue.build(); onChanged(); } else { blockStateChangedMsgBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /**
public final boolean isInitialized() { if (!hasExecutorId()) { return false; } if (!hasBlockId()) { return false; } if (!hasState()) { return false; } if (!hasLocation()) { return false; } return true; }
private Builder() { maybeForceBuilderInitialization(); }
private static Builder create() { return new Builder(); }
public Builder clone() { return create().mergeFrom(buildPartial()); }
public Builder clone() { return create().mergeFrom(buildPartial()); }
private static Builder create() { return new Builder(); }
public final boolean isInitialized() { if (!hasExecutorId()) { return false; } if (!hasBlockId()) { return false; } if (!hasState()) { return false; } if (!hasLocation()) { return false; } return true; }
private Builder() { maybeForceBuilderInitialization(); }