public void writeTo(com.github.os72.protobuf351.CodedOutputStream output) throws java.io.IOException { if (stepId_ != 0L) { output.writeInt64(1, stepId_); } if (!getKernelNameBytes().isEmpty()) { com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 2, kernelName_); } if (index_ != 0) { output.writeInt32(3, index_); } if (tensor_ != null) { output.writeMessage(4, getTensor()); } unknownFields.writeTo(output); }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (stepId_ != 0L) { size += com.github.os72.protobuf351.CodedOutputStream .computeInt64Size(1, stepId_); } if (!getKernelNameBytes().isEmpty()) { size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(2, kernelName_); } if (index_ != 0) { size += com.github.os72.protobuf351.CodedOutputStream .computeInt32Size(3, index_); } if (tensor_ != null) { size += com.github.os72.protobuf351.CodedOutputStream .computeMessageSize(4, getTensor()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (stepId_ != 0L) { output.writeInt64(1, stepId_); } if (!getKernelNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kernelName_); } if (index_ != 0) { output.writeInt32(3, index_); } if (tensor_ != null) { output.writeMessage(4, getTensor()); } unknownFields.writeTo(output); }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (stepId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, stepId_); } if (!getKernelNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kernelName_); } if (index_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, index_); } if (tensor_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getTensor()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }