public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, outPointHash_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, outPointIndex_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, scriptBytes_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, value_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, isGenerated_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, outPointHash_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, outPointIndex_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, scriptBytes_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt64(4, value_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBool(5, isGenerated_); } getUnknownFields().writeTo(output); }
public Builder mergeFrom(com.openwallet.core.protos.Protos.UnspentOutput other) { if (other == com.openwallet.core.protos.Protos.UnspentOutput.getDefaultInstance()) return this; if (other.hasOutPointHash()) { setOutPointHash(other.getOutPointHash()); } if (other.hasOutPointIndex()) { setOutPointIndex(other.getOutPointIndex()); } if (other.hasScriptBytes()) { setScriptBytes(other.getScriptBytes()); } if (other.hasValue()) { setValue(other.getValue()); } if (other.hasIsGenerated()) { setIsGenerated(other.getIsGenerated()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }