public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getStartKeyBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, startKey_); } if (!getEndKeyBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, endKey_); } if (!getCollectionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, collection_); } }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getStartKeyBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, startKey_); } if (!getEndKeyBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, endKey_); } if (!getCollectionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, collection_); } memoizedSize = size; return size; }