public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getInitiatorExecutorIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, transferIndex_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeEnum(3, dataDirection_.getNumber()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, contextDescriptor_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBool(5, isPipe_); } getUnknownFields().writeTo(output); }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getInitiatorExecutorIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, transferIndex_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeEnum(3, dataDirection_.getNumber()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, contextDescriptor_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBool(5, isPipe_); } getUnknownFields().writeTo(output); }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getInitiatorExecutorIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, transferIndex_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, dataDirection_.getNumber()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, contextDescriptor_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, isPipe_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getInitiatorExecutorIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, transferIndex_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, dataDirection_.getNumber()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, contextDescriptor_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, isPipe_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public Builder mergeFrom(org.apache.nemo.runtime.common.comm.ControlMessage.ByteTransferContextSetupMessage other) { if (other == org.apache.nemo.runtime.common.comm.ControlMessage.ByteTransferContextSetupMessage.getDefaultInstance()) return this; if (other.hasInitiatorExecutorId()) { bitField0_ |= 0x00000001; initiatorExecutorId_ = other.initiatorExecutorId_; onChanged(); } if (other.hasTransferIndex()) { setTransferIndex(other.getTransferIndex()); } if (other.hasDataDirection()) { setDataDirection(other.getDataDirection()); } if (other.hasContextDescriptor()) { setContextDescriptor(other.getContextDescriptor()); } if (other.hasIsPipe()) { setIsPipe(other.getIsPipe()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.apache.nemo.runtime.common.comm.ControlMessage.ByteTransferContextSetupMessage other) { if (other == org.apache.nemo.runtime.common.comm.ControlMessage.ByteTransferContextSetupMessage.getDefaultInstance()) return this; if (other.hasInitiatorExecutorId()) { bitField0_ |= 0x00000001; initiatorExecutorId_ = other.initiatorExecutorId_; onChanged(); } if (other.hasTransferIndex()) { setTransferIndex(other.getTransferIndex()); } if (other.hasDataDirection()) { setDataDirection(other.getDataDirection()); } if (other.hasContextDescriptor()) { setContextDescriptor(other.getContextDescriptor()); } if (other.hasIsPipe()) { setIsPipe(other.getIsPipe()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }