public static EventProtos.RootInputDataInformationEventProto convertRootInputDataInformationEventToProto(InputDataInformationEvent event) { EventProtos.RootInputDataInformationEventProto.Builder builder = EventProtos.RootInputDataInformationEventProto.newBuilder(); builder.setSourceIndex(event.getSourceIndex()); builder.setTargetIndex(event.getTargetIndex()); if (event.getUserPayload() != null) { builder.setUserPayload(ByteString.copyFrom(event.getUserPayload())); } return builder.build(); }
public Builder mergeFrom(org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto other) { if (other == org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto.getDefaultInstance()) return this; if (other.hasSourceIndex()) { setSourceIndex(other.getSourceIndex()); } if (other.hasTargetIndex()) { setTargetIndex(other.getTargetIndex()); } if (other.hasUserPayload()) { setUserPayload(other.getUserPayload()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }