/** * Send the given byte[] as a message to the client. * * @param message */ public synchronized void sendMessage(final byte[] message) { this.send(ReefServiceProtos.JobStatusProto.newBuilder() .setIdentifier(this.jobIdentifier) .setState(ReefServiceProtos.State.RUNNING) .setMessage(ByteString.copyFrom(message)) .build()); } }
public Builder mergeFrom(com.microsoft.reef.proto.ReefServiceProtos.JobStatusProto other) { if (other == com.microsoft.reef.proto.ReefServiceProtos.JobStatusProto.getDefaultInstance()) return this; if (other.hasIdentifier()) { bitField0_ |= 0x00000001; identifier_ = other.identifier_; onChanged(); } if (other.hasState()) { setState(other.getState()); } if (other.hasMessage()) { setMessage(other.getMessage()); } if (other.hasException()) { setException(other.getException()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }