final ControlMessage.BlockTransferContextDescriptor descriptor = ControlMessage.BlockTransferContextDescriptor.newBuilder() .setBlockId(blockId) .setBlockStore(convertBlockStore(blockStore)) .setRuntimeEdgeId(runtimeEdgeId) .setKeyRange(ByteString.copyFrom(SerializationUtils.serialize(keyRange))) .build(); final CompletableFuture<ByteInputContext> contextFuture = blockTransferThrottler .requestTransferPermission(runtimeEdgeId)
final ControlMessage.BlockTransferContextDescriptor descriptor = ControlMessage.BlockTransferContextDescriptor.newBuilder() .setBlockId(blockId) .setBlockStore(convertBlockStore(blockStore)) .setRuntimeEdgeId(runtimeEdgeId) .setKeyRange(ByteString.copyFrom(SerializationUtils.serialize(keyRange))) .build(); final CompletableFuture<ByteInputContext> contextFuture = blockTransferThrottler .requestTransferPermission(runtimeEdgeId)
public Builder mergeFrom(org.apache.nemo.runtime.common.comm.ControlMessage.BlockTransferContextDescriptor other) { if (other == org.apache.nemo.runtime.common.comm.ControlMessage.BlockTransferContextDescriptor.getDefaultInstance()) return this; if (other.hasBlockId()) { bitField0_ |= 0x00000001; blockId_ = other.blockId_; onChanged(); } if (other.hasBlockStore()) { setBlockStore(other.getBlockStore()); } if (other.hasRuntimeEdgeId()) { bitField0_ |= 0x00000004; runtimeEdgeId_ = other.runtimeEdgeId_; onChanged(); } if (other.hasKeyRange()) { setKeyRange(other.getKeyRange()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.apache.nemo.runtime.common.comm.ControlMessage.BlockTransferContextDescriptor other) { if (other == org.apache.nemo.runtime.common.comm.ControlMessage.BlockTransferContextDescriptor.getDefaultInstance()) return this; if (other.hasBlockId()) { bitField0_ |= 0x00000001; blockId_ = other.blockId_; onChanged(); } if (other.hasBlockStore()) { setBlockStore(other.getBlockStore()); } if (other.hasRuntimeEdgeId()) { bitField0_ |= 0x00000004; runtimeEdgeId_ = other.runtimeEdgeId_; onChanged(); } if (other.hasKeyRange()) { setKeyRange(other.getKeyRange()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
private static Builder create() { return new Builder(); }
private Builder() { maybeForceBuilderInitialization(); }
private static Builder create() { return new Builder(); }
private Builder() { maybeForceBuilderInitialization(); }
public Builder clone() { return create().mergeFrom(buildPartial()); }
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
public Builder clone() { return create().mergeFrom(buildPartial()); }
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {
public final boolean isInitialized() { if (!hasBlockId()) { return false; } if (!hasBlockStore()) { return false; } if (!hasRuntimeEdgeId()) { return false; } return true; }
private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {
public final boolean isInitialized() { if (!hasBlockId()) { return false; } if (!hasBlockStore()) { return false; } if (!hasRuntimeEdgeId()) { return false; } return true; }
public org.apache.nemo.runtime.common.comm.ControlMessage.BlockTransferContextDescriptor build() { org.apache.nemo.runtime.common.comm.ControlMessage.BlockTransferContextDescriptor result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public org.apache.nemo.runtime.common.comm.ControlMessage.BlockTransferContextDescriptor build() { org.apache.nemo.runtime.common.comm.ControlMessage.BlockTransferContextDescriptor result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }